E - public final class ImmutableNavigableSet<E> extends ImmutableSortedSet<E> implements NavigableSet<E>
| Modifier and Type | Method and Description |
|---|---|
E |
ceiling(E e) |
static <E> ImmutableNavigableSet<E> |
copyOf(SortedSet<? extends E> sortedSet) |
Iterator<E> |
descendingIterator() |
NavigableSet<E> |
descendingSet() |
static <E> ImmutableNavigableSet<E> |
empty() |
E |
floor(E e) |
NavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
E |
lower(E e) |
static <E extends Comparable<? super E>> |
of(E... a) |
static <E> ImmutableNavigableSet<E> |
of(NavigableSet<? extends E> navigableSet) |
static <E> ImmutableSortedSet<E> |
of(SortedSet<? extends E> sortedSet)
Deprecated.
throws
UnsupportedOperationException |
E |
pollFirst() |
E |
pollLast() |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
NavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
comparator, copyOf, first, headSet, last, of, subSet, tailSetjustadd, addAll, clear, contains, equals, hashCode, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringcontainsAll, isEmptyheadSet, iterator, subSet, tailSetcomparator, first, last, spliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic static <E> ImmutableNavigableSet<E> empty()
E - @SafeVarargs public static <E extends Comparable<? super E>> ImmutableNavigableSet<E> of(E... a)
E - a - public static <E> ImmutableNavigableSet<E> of(NavigableSet<? extends E> navigableSet)
E - navigableSet - the elements in this Set are shared by the returned ImmutableNavigableSet.public static <E> ImmutableNavigableSet<E> copyOf(SortedSet<? extends E> sortedSet)
E - sortedSet - @Deprecated public static <E> ImmutableSortedSet<E> of(SortedSet<? extends E> sortedSet) throws UnsupportedOperationException
UnsupportedOperationExceptionE - sortedSet - UnsupportedOperationExceptionpublic E lower(E e)
lower in interface NavigableSet<E>e - public E floor(E e)
floor in interface NavigableSet<E>e - public E ceiling(E e)
ceiling in interface NavigableSet<E>e - public E higher(E e)
higher in interface NavigableSet<E>e - public E pollFirst()
pollFirst in interface NavigableSet<E>public E pollLast()
pollLast in interface NavigableSet<E>public NavigableSet<E> descendingSet()
descendingSet in interface NavigableSet<E>public Iterator<E> descendingIterator()
descendingIterator in interface NavigableSet<E>public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet in interface NavigableSet<E>fromElement - fromInclusive - toElement - toInclusive - public NavigableSet<E> headSet(E toElement, boolean inclusive)
headSet in interface NavigableSet<E>toElement - inclusive - public NavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet in interface NavigableSet<E>fromElement - inclusive - Copyright © 2021. All rights reserved.