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