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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.landawn.abacus.util.ImmutableSet
ImmutableSet.Builder<E>
-
Method Summary
Modifier and TypeMethodDescriptionComparator<? super E>
static <E> ImmutableSortedSet<E>
static <E> ImmutableSortedSet<E>
empty()
first()
static <T extends Comparable<? super T>>
ImmutableSortedSet<T>just
(T e) last()
static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2, T e3) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2, T e3, T e4) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2, T e3, T e4, T e5) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2, T e3, T e4, T e5, T e6) static <T extends Comparable<? super T>>
ImmutableSortedSet<T>of
(T e1, T e2, T e3, T e4, T e5, T e6, T e7) static <E> ImmutableSet<E>
Deprecated.static <E> ImmutableSortedSet<E>
Deprecated.the ImmutableSortedSet may be modified through the specifiedsortedSet
Methods inherited from class com.landawn.abacus.util.ImmutableSet
builder, copyOf, just, of, of, of, of, of, of, of, of, wrap
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:
-
just
- Type Parameters:
T
-- Parameters:
e
-- Returns:
-
of
- Type Parameters:
T
-- Parameters:
e1
-- Returns:
-
of
- Type Parameters:
T
-- Parameters:
e1
-e2
-- Returns:
-
of
- Type Parameters:
T
-- Parameters:
e1
-e2
-e3
-- Returns:
-
of
- Type Parameters:
T
-- Parameters:
e1
-e2
-e3
-e4
-- Returns:
-
of
public static <T extends Comparable<? super T>> ImmutableSortedSet<T> of(T e1, T e2, T e3, T e4, T e5) - Type Parameters:
T
-- Parameters:
e1
-e2
-e3
-e4
-e5
-- Returns:
-
of
public static <T extends Comparable<? super T>> ImmutableSortedSet<T> of(T e1, T e2, T e3, T e4, T e5, T e6) - Type Parameters:
T
-- Parameters:
e1
-e2
-e3
-e4
-e5
-e6
-- Returns:
-
of
public static <T extends Comparable<? super T>> ImmutableSortedSet<T> of(T e1, T e2, T e3, T e4, T e5, T e6, T e7) - Type Parameters:
T
-- Parameters:
e1
-e2
-e3
-e4
-e5
-e6
-e7
-- Returns:
-
copyOf
- Type Parameters:
E
-- Parameters:
sortedSet
-- Returns:
-
wrap
Deprecated.the ImmutableSortedSet may be modified through the specifiedsortedSet
- Type Parameters:
E
-- Parameters:
sortedSet
-- Returns:
- an
ImmutableSortedSet
backed by the specifiedsortedSet
-
wrap
@Deprecated public static <E> ImmutableSet<E> wrap(Set<? extends E> set) throws UnsupportedOperationException Deprecated.throwsUnsupportedOperationException
- Type Parameters:
E
-- Parameters:
set
-- Returns:
- Throws:
UnsupportedOperationException
-
comparator
- Specified by:
comparator
in interfaceSortedSet<E>
- Returns:
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
UnsupportedOperationException