ImmutableSet static methods that lack ImmutableSortedSet
equivalents with deprecated, exception-throwing versions. This prevents accidents like the
following:
List<Object> objects = ...;
// Sort them:
Set<Object> sorted = ImmutableSortedSet.copyOf(objects);
// BAD CODE! The returned set is actually an unsorted ImmutableSet!
While we could put the overrides in ImmutableSortedSet itself, it seems clearer to
separate these "do not call" methods from those intended for normal use.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> ImmutableSortedSet. | builder()
Hides com.
Deprecated
Use
Not supported.
ImmutableSortedSet#naturalOrder, which offers better type-safety.
|
| public static <E> ImmutableSortedSet. | builderWithExpectedSize(int expectedSize)
Hides com.
Deprecated
Not supported by ImmutableSortedSet.
Not supported.
|
| public static <E> ImmutableSortedSet | copyOf(E[] elements)
Hides com.
Deprecated
Pass parameters of type
Not supported.
Comparable to use ImmutableSortedSet#copyOf(Comparable[]).
|
| public static <E> ImmutableSortedSet | of(E
the single element element)Hides com.
Deprecated
Pass a parameter of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable).
|
| public static <E> ImmutableSortedSet | of(E
the first element e1, E the second element e2)Hides com.
Deprecated
Pass the parameters of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable, Comparable).
|
| public static <E> ImmutableSortedSet | of(E
the first element e1, E the second element e2, E the third element e3)Hides com.
Deprecated
Pass the parameters of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable, Comparable, Comparable).
|
| public static <E> ImmutableSortedSet | of(E
the first element e1, E the second element e2, E the third element e3, E the fourth element e4)Hides com.
Deprecated
Pass the parameters of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable, Comparable, Comparable, Comparable).
|
| public static <E> ImmutableSortedSet | of(E
the first element e1, E the second element e2, E the third element e3, E the fourth element e4, E the fifth element e5)Hides com.
Deprecated
Pass the parameters of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable, Comparable, Comparable, Comparable, Comparable).
|
| public static <E> ImmutableSortedSet | of(E
the first element e1, E the second element e2, E the third element e3, E the fourth element e4, E the fifth element e5, E the sixth element e6, E... the seventh element remaining)Hides com.
Deprecated
Pass the parameters of type
Not supported.
Comparable to use ImmutableSortedSet#of(Comparable, Comparable, Comparable, Comparable, Comparable,
Comparable, Comparable..
|
| public static <E> Collector | toImmutableSet()
Hides com.
Deprecated
Use
Not supported.
ImmutableSortedSet#toImmutableSortedSet.
|
| ImmutableSortedSetFauxverideShim | back to summary |
|---|---|
| pack-priv ImmutableSortedSetFauxverideShim() | |
| builder | back to summary |
|---|---|
| public static <E> ImmutableSortedSet. Hides com. Deprecated Use Not supported. Use
| |
| builderWithExpectedSize | back to summary |
|---|---|
| public static <E> ImmutableSortedSet. Hides com. Deprecated Not supported by ImmutableSortedSet. Not supported. This method exists only to hide
| |
| copyOf | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass parameters of type Not supported. You are attempting to create a set that may contain non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass a parameter of type Not supported. You are attempting to create a set that may contain a non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass the parameters of type Not supported. You are attempting to create a set that may contain a non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass the parameters of type Not supported. You are attempting to create a set that may contain a non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass the parameters of type Not supported. You are attempting to create a set that may contain a non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass the parameters of type Not supported. You are attempting to create a set that may contain a non-
| |
| of | back to summary |
|---|---|
| public static <E> ImmutableSortedSet Hides com. Deprecated Pass the parameters of type Not supported. You are attempting to create a set that may contain a non-
| |
| toImmutableSet | back to summary |
|---|---|
| public static <E> Collector Hides com. Deprecated Not supported. Use
| |