com.sleepycat.collections
public class StoredSortedEntrySet extends StoredEntrySet implements SortedSet
The java.util.Map.Entry#setValue method of the Map.Entry objects that are returned by this class and its iterators behaves just as the StoredIterator method does.
In addition to the standard SortedSet methods, this class provides the following methods for stored sorted sets only. Note that the use of these methods is not compatible with the standard Java collections interface.
Method Summary | |
---|---|
Comparator | comparator()
Returns null since comparators are not supported. |
Object | first()
Returns the first (lowest) element currently in this sorted set.
|
SortedSet | headSet(Object toMapEntry)
Returns a view of the portion of this sorted set whose elements are
strictly less than toMapEntry.
|
SortedSet | headSet(Object toMapEntry, boolean toInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly less than toMapEntry, optionally including toMapEntry.
|
Object | last()
Returns the last (highest) element currently in this sorted set.
|
SortedSet | subSet(Object fromMapEntry, Object toMapEntry)
Returns a view of the portion of this sorted set whose elements range
from fromMapEntry, inclusive, to toMapEntry, exclusive.
|
SortedSet | subSet(Object fromMapEntry, boolean fromInclusive, Object toMapEntry, boolean toInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly greater than fromMapEntry and strictly less than toMapEntry,
optionally including fromMapEntry and toMapEntry.
|
SortedSet | tailSet(Object fromMapEntry)
Returns a view of the portion of this sorted set whose elements are
greater than or equal to fromMapEntry.
|
SortedSet | tailSet(Object fromMapEntry, boolean fromInclusive)
Returns a view of the portion of this sorted set whose elements are
strictly greater than fromMapEntry, optionally including fromMapEntry.
|
Returns: null.
Returns: the first element.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: toMapEntry the upper bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: toMapEntry is the upper bound. toInclusive is true to include toMapEntry.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Returns: the last element.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromMapEntry is the lower bound. toMapEntry is the upper bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromMapEntry is the lower bound. fromInclusive is true to include fromMapEntry. toMapEntry is the upper bound. toInclusive is true to include toMapEntry.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromMapEntry is the lower bound.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Note that the return value is a StoredCollection and must be treated as such; for example, its iterators must be explicitly closed.
Parameters: fromMapEntry is the lower bound. fromInclusive is true to include fromMapEntry.
Returns: the subset.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.