Package com.landawn.abacus.util
Class ImmutableSortedSet<E>
java.lang.Object
java.util.AbstractCollection<E>
com.landawn.abacus.util.ImmutableCollection<E>
com.landawn.abacus.util.ImmutableSet<E>
com.landawn.abacus.util.ImmutableSortedSet<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
Immutable
,Iterable<E>
,Collection<E>
,Set<E>
,SortedSet<E>
- Direct Known Subclasses:
ImmutableNavigableSet
- Since:
- 1.1.4
- Author:
- Haiyang Li
-
Method Summary
Modifier and TypeMethodDescriptionComparator<? super E>
static <E> ImmutableSet<E>
copyOf
(Collection<? extends E> set) Deprecated.static <E> ImmutableSortedSet<E>
static <E> ImmutableSortedSet<E>
empty()
first()
last()
static <E extends Comparable<? super E>>
ImmutableSortedSet<E>of
(E... a) static <E> ImmutableSet<E>
Deprecated.throwsUnsupportedOperationException
static <E> ImmutableSortedSet<E>
Methods inherited from class com.landawn.abacus.util.ImmutableSet
just, of, of, of
Methods inherited from class com.landawn.abacus.util.ImmutableCollection
add, addAll, clear, contains, equals, hashCode, iterator, remove, removeAll, removeIf, retainAll, size, toArray, toArray, toString
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
Methods inherited from interface java.util.SortedSet
spliterator
-
Method Details
-
empty
- Type Parameters:
E
-- Returns:
-
of
- Type Parameters:
E
-- Parameters:
a
-- Returns:
-
of
- Type Parameters:
E
-- Parameters:
sortedSet
- the elements in thisSet
are shared by the returned ImmutableSortedSet.- Returns:
-
copyOf
- Type Parameters:
E
-- Parameters:
sortedSet
-- Returns:
-
of
@Deprecated public static <E> ImmutableSet<E> of(Set<? extends E> set) throws UnsupportedOperationException Deprecated.throwsUnsupportedOperationException
- Type Parameters:
E
-- Parameters:
set
-- Returns:
- Throws:
UnsupportedOperationException
-
copyOf
@Deprecated public static <E> ImmutableSet<E> copyOf(Collection<? extends E> set) throws UnsupportedOperationException Deprecated.throwsUnsupportedOperationException
- Type Parameters:
E
-- Parameters:
set
-- Returns:
- Throws:
UnsupportedOperationException
-
comparator
- Specified by:
comparator
in interfaceSortedSet<E>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
UnsupportedOperationException