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

public interface ReadOnlySortedSet<E> extends ReadOnlySequencedSet<E>
A read-only interface to a sorted set. A sorted set is a set that provides a total ordering on its elements.
  • Method Details

    • comparator

      @Nullable Comparator<? super E> comparator()
      Returns the comparator used to order the elements in this set, or null if this set uses the natural ordering of its elements.
      Returns:
      comparator or null