Module org.jhotdraw8.icollection
Interface ReadOnlySortedSet<E>
- Type Parameters:
E- the element type
- All Superinterfaces:
Iterable<E>,ReadOnlyCollection<E>,ReadOnlySequencedCollection<E>,ReadOnlySequencedSet<E>,ReadOnlySet<E>
- All Known Subinterfaces:
ImmutableNavigableSet<E>,ImmutableSortedSet<E>,ReadOnlyNavigableSet<E>
- All Known Implementing Classes:
MutableRedBlackSet,ReadOnlyNavigableSetFacade,ReadOnlySortedSetFacade,RedBlackSet
A read-only interface to a sorted set. A sorted set is a set that provides a total ordering on its elements.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Comparator<? super E> Returns the comparator used to order the elements in this set, ornullif this set uses the natural ordering of its elements.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, hashCode
-
Method Details
-
comparator
@Nullable Comparator<? super E> comparator()Returns the comparator used to order the elements in this set, ornullif this set uses the natural ordering of its elements.- Returns:
- comparator or null
-