Module org.jhotdraw8.icollection
Interface ReadOnlyNavigableSet<E>
- Type Parameters:
E- the element type
- All Superinterfaces:
Iterable<E>,ReadOnlyCollection<E>,ReadOnlySequencedCollection<E>,ReadOnlySequencedSet<E>,ReadOnlySet<E>,ReadOnlySortedSet<E>
- All Known Subinterfaces:
ImmutableNavigableSet<E>
- All Known Implementing Classes:
MutableRedBlackSet,ReadOnlyNavigableSetFacade,RedBlackSet
A read-only interface to a navigable set.
-
Method Summary
Modifier and TypeMethodDescription@Nullable EReturns the least element in this set greater than or equal to the given element, or null if there is no such element.@Nullable EReturns the greatest element in this set less than or equal to the given element, or null if there is no such element.@Nullable EReturns the least element in this set greater than the given element, or null if there is no such element.@Nullable EReturns the greatest element in this set less than the given element, or null if there is no such element.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyCollection
contains, containsAll, isEmpty, iterator, size, stream, toArray, toArrayMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySequencedCollection
asCollection, getFirst, getLastMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySequencedSet
asSet, readOnlyReversedMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySet
characteristics, equals, hashCodeMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySortedSet
comparator
-
Method Details
-
ceiling
Returns the least element in this set greater than or equal to the given element, or null if there is no such element.- Parameters:
e- the given element- Returns:
- ceiling element or null
-
floor
Returns the greatest element in this set less than or equal to the given element, or null if there is no such element.- Parameters:
e- the given element- Returns:
- floor element or null
-
higher
Returns the least element in this set greater than the given element, or null if there is no such element.- Parameters:
e- the given element- Returns:
- higher element or null
-
lower
Returns the greatest element in this set less than the given element, or null if there is no such element.- Parameters:
e- the given element- Returns:
- lower element or null
-