public enum ImmutableSetFactoryImpl extends Enum<ImmutableSetFactoryImpl> implements ImmutableSetFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableSet<T> |
empty() |
<T> ImmutableSet<T> |
of() |
<T> ImmutableSet<T> |
of(T... items) |
<T> ImmutableSet<T> |
of(T one) |
<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(Iterable<? extends T> items) |
static ImmutableSetFactoryImpl |
valueOf(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() |
<T> ImmutableSet<T> |
with(T... items) |
<T> ImmutableSet<T> |
with(T one) |
<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(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> ImmutableSet<T> empty()
empty in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of()
of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with()
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one)
of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T one)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> of(T one, T two)
of 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)
of 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)
of 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)
of in interface ImmutableSetFactorypublic <T> ImmutableSet<T> with(T... items)
with in interface ImmutableSetFactorypublic <T> ImmutableSet<T> ofAll(Iterable<? extends T> items)
ofAll in interface ImmutableSetFactorypublic <T> ImmutableSet<T> withAll(Iterable<? extends T> items)
withAll in interface ImmutableSetFactoryCopyright © 2004–2017. All rights reserved.