ImmutableSortedSetFactory
public enum ImmutableSortedSetFactoryImpl extends java.lang.Enum<ImmutableSortedSetFactoryImpl> implements ImmutableSortedSetFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<T> ImmutableSortedSet<T> |
empty() |
|
<T> ImmutableSortedSet<T> |
empty(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedSet<T> |
of() |
Same as
ImmutableSortedSetFactory.empty() . |
<T> ImmutableSortedSet<T> |
of(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedSet<T> |
of(java.util.Comparator<? super T> comparator,
T... items) |
|
<T> ImmutableSortedSet<T> |
of(T... items) |
|
<T> ImmutableSortedSet<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedSet<T> |
ofAll(java.util.Comparator<? super T> comparator,
java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedSet<T> |
ofSortedSet(java.util.SortedSet<T> set) |
|
static ImmutableSortedSetFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableSortedSetFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> ImmutableSortedSet<T> |
with() |
Same as
ImmutableSortedSetFactory.empty() . |
<T> ImmutableSortedSet<T> |
with(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedSet<T> |
with(java.util.Comparator<? super T> comparator,
T... items) |
|
<T> ImmutableSortedSet<T> |
with(T... items) |
|
<T> ImmutableSortedSet<T> |
withAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedSet<T> |
withAll(java.util.Comparator<? super T> comparator,
java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedSet<T> |
withSortedSet(java.util.SortedSet<T> set) |
public static final ImmutableSortedSetFactoryImpl INSTANCE
public static ImmutableSortedSetFactoryImpl[] values()
for (ImmutableSortedSetFactoryImpl c : ImmutableSortedSetFactoryImpl.values()) System.out.println(c);
public static ImmutableSortedSetFactoryImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic <T> ImmutableSortedSet<T> empty()
empty
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> empty(java.util.Comparator<? super T> comparator)
empty
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of()
ImmutableSortedSetFactory
ImmutableSortedSetFactory.empty()
.of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with()
ImmutableSortedSetFactory
ImmutableSortedSetFactory.empty()
.with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(T... items)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(T... items)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableSortedSetFactory
ofAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withAll(java.lang.Iterable<? extends T> items)
withAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(java.util.Comparator<? super T> comparator)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(java.util.Comparator<? super T> comparator)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> of(java.util.Comparator<? super T> comparator, T... items)
ImmutableSortedSetFactory
of
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> with(java.util.Comparator<? super T> comparator, T... items)
with
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
ImmutableSortedSetFactory
ofAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
withAll
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> ofSortedSet(java.util.SortedSet<T> set)
ImmutableSortedSetFactory
ofSortedSet
in interface ImmutableSortedSetFactory
public <T> ImmutableSortedSet<T> withSortedSet(java.util.SortedSet<T> set)
withSortedSet
in interface ImmutableSortedSetFactory
Copyright © 2004–2018. All rights reserved.