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

public interface ReadOnlyNavigableSet<E> extends ReadOnlySortedSet<E>
A read-only interface to a navigable set.
  • Method Details

    • ceiling

      @Nullable E ceiling(E e)
      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

      @Nullable E floor(E e)
      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

      @Nullable E higher(E e)
      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

      @Nullable E lower(E e)
      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