E - public class ImmutableSortedSet<E> extends ImmutableSet<E> implements SortedSet<E>
| Modifier and Type | Method and Description |
|---|---|
Comparator<? super E> |
comparator() |
static <E> ImmutableSet<E> |
copyOf(Collection<? extends E> set)
Deprecated.
throws
UnsupportedOperationException |
static <E> ImmutableSortedSet<E> |
copyOf(SortedSet<? extends E> sortedSet) |
static <E> ImmutableSortedSet<E> |
empty() |
E |
first() |
SortedSet<E> |
headSet(E toElement) |
E |
last() |
static <E extends Comparable<? super E>> |
of(E... a) |
static <E> ImmutableSet<E> |
of(Set<? extends E> set)
Deprecated.
throws
UnsupportedOperationException |
static <E> ImmutableSortedSet<E> |
of(SortedSet<? extends E> sortedSet) |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
SortedSet<E> |
tailSet(E fromElement) |
justadd, addAll, clear, contains, equals, hashCode, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringcontainsAll, isEmptyspliteratoradd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic static <E> ImmutableSortedSet<E> empty()
E - @SafeVarargs public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E... a)
E - a - public static <E> ImmutableSortedSet<E> of(SortedSet<? extends E> sortedSet)
E - sortedSet - the elements in this Set are shared by the returned ImmutableSortedSet.public static <E> ImmutableSortedSet<E> copyOf(SortedSet<? extends E> sortedSet)
E - sortedSet - @Deprecated public static <E> ImmutableSet<E> of(Set<? extends E> set) throws UnsupportedOperationException
UnsupportedOperationExceptionE - set - UnsupportedOperationException@Deprecated public static <E> ImmutableSet<E> copyOf(Collection<? extends E> set) throws UnsupportedOperationException
UnsupportedOperationExceptionE - set - UnsupportedOperationExceptionpublic Comparator<? super E> comparator()
comparator in interface SortedSet<E>Copyright © 2021. All rights reserved.