public enum MutableSetFactoryImpl extends Enum<MutableSetFactoryImpl> implements MutableSetFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableSet<T> |
empty() |
<T> MutableSet<T> |
of() |
<T> MutableSet<T> |
of(T... items) |
<T> MutableSet<T> |
ofAll(Iterable<? extends T> items) |
<T> MutableSet<T> |
ofInitialCapacity(int capacity) |
static MutableSetFactoryImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MutableSetFactoryImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableSet<T> |
with() |
<T> MutableSet<T> |
with(T... items) |
<T> MutableSet<T> |
withAll(Iterable<? extends T> items) |
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
public static final MutableSetFactoryImpl INSTANCE
public static MutableSetFactoryImpl[] values()
for (MutableSetFactoryImpl c : MutableSetFactoryImpl.values()) System.out.println(c);
public static MutableSetFactoryImpl 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> MutableSet<T> empty()
empty in interface MutableSetFactorypublic <T> MutableSet<T> of()
of in interface MutableSetFactorypublic <T> MutableSet<T> with()
with in interface MutableSetFactorypublic <T> MutableSet<T> ofInitialCapacity(int capacity)
ofInitialCapacity in interface MutableSetFactorypublic <T> MutableSet<T> withInitialCapacity(int capacity)
withInitialCapacity in interface MutableSetFactorypublic <T> MutableSet<T> of(T... items)
of in interface MutableSetFactorypublic <T> MutableSet<T> with(T... items)
with in interface MutableSetFactorypublic <T> MutableSet<T> ofAll(Iterable<? extends T> items)
ofAll in interface MutableSetFactorypublic <T> MutableSet<T> withAll(Iterable<? extends T> items)
withAll in interface MutableSetFactoryCopyright © 2004–2017. All rights reserved.