ImmutableSetFactorypublic enum ImmutableSetFactoryImpl extends java.lang.Enum<ImmutableSetFactoryImpl> implements ImmutableSetFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | Description |
|---|---|---|
<T> ImmutableSet<T> |
empty() |
|
<T> ImmutableSet<T> |
of() |
Same as
ImmutableSetFactory.empty(). |
<T> ImmutableSet<T> |
of(T one) |
Same as
ImmutableSetFactory.with(Object). |
<T> ImmutableSet<T> |
of(T... items) |
Same as
ImmutableSetFactory.with(Object[]). |
<T> ImmutableSet<T> |
of(T one,
T two) |
|
<T> ImmutableSet<T> |
of(T one,
T two,
T three) |
|
<T> ImmutableSet<T> |
of(T one,
T two,
T three,
T four) |
|
<T> ImmutableSet<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
static ImmutableSetFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ImmutableSetFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> ImmutableSet<T> |
with() |
Same as
ImmutableSetFactory.empty(). |
<T> ImmutableSet<T> |
with(T one) |
|
<T> ImmutableSet<T> |
with(T... items) |
|
<T> ImmutableSet<T> |
with(T one,
T two) |
|
<T> ImmutableSet<T> |
with(T one,
T two,
T three) |
|
<T> ImmutableSet<T> |
with(T one,
T two,
T three,
T four) |
|
<T> ImmutableSet<T> |
withAll(java.lang.Iterable<? extends T> items) |
public static final ImmutableSetFactoryImpl INSTANCE
public static ImmutableSetFactoryImpl[] values()
for (ImmutableSetFactoryImpl c : ImmutableSetFactoryImpl.values()) System.out.println(c);
public static ImmutableSetFactoryImpl 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> ImmutableSet<T> empty()
empty in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of()
ImmutableSetFactoryImmutableSetFactory.empty().of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with()
ImmutableSetFactoryImmutableSetFactory.empty().with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one)
ImmutableSetFactoryImmutableSetFactory.with(Object).of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T one)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one, T two)
ImmutableSetFactoryof in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T one, T two)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one, T two, T three)
ImmutableSetFactoryof in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T one, T two, T three)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one, T two, T three, T four)
ImmutableSetFactoryof in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T one, T two, T three, T four)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T... items)
ImmutableSetFactoryImmutableSetFactory.with(Object[]).of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T... items)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableSetFactoryofAll in interface ImmutableSetFactorypublic <T> ImmutableSet<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface ImmutableSetFactoryCopyright © 2004–2018. All rights reserved.