    001package com.hammurapi.store;
    002
    003/**
    004 * Ordered index.
    005 * @author Pavel Vlasov
    006 *
    007 * @param <T>
    008 * @param <PK>
    009 */
    010public interface OrderedIndex<ST, T extends ST, PK, V, S extends Store<ST,PK,S>> extends Index<ST, T, PK, V, S> {
    011
    012        /**
    013         * Finds objects by index range.
    014         * @param from Low index range value.
    015         * @param to High index range value.
    016         * @param fromInclusive If true, <code>from</code> is included to the range.
    017         * @param toInclusive If true, <code>to</code> is included to the range.
    018         * @return
    019         */
    020        Iterable<T> find(V from, V to, boolean fromInclusive, boolean toInclusive);
    021}