MutableBagFactorypublic enum MutableBagFactoryImpl extends java.lang.Enum<MutableBagFactoryImpl> implements MutableBagFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | Description |
|---|---|---|
<T> MutableBag<T> |
empty() |
|
<T> MutableBag<T> |
of() |
Same as
MutableBagFactory.empty(). |
<T> MutableBag<T> |
of(T... elements) |
Same as
MutableBagFactory.with(Object[]). |
<T> MutableBag<T> |
ofAll(java.lang.Iterable<? extends T> items) |
Same as
MutableBagFactory.withAll(Iterable). |
static MutableBagFactoryImpl |
valueOf(java.lang.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() |
Same as
MutableBagFactory.empty(). |
<T> MutableBag<T> |
with(T... elements) |
|
<T> MutableBag<T> |
withAll(java.lang.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(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> MutableBag<T> empty()
empty in interface MutableBagFactorypublic <T> MutableBag<T> of()
MutableBagFactoryMutableBagFactory.empty().of in interface MutableBagFactorypublic <T> MutableBag<T> with()
MutableBagFactoryMutableBagFactory.empty().with in interface MutableBagFactorypublic <T> MutableBag<T> of(T... elements)
MutableBagFactoryMutableBagFactory.with(Object[]).of in interface MutableBagFactorypublic <T> MutableBag<T> with(T... elements)
with in interface MutableBagFactorypublic <T> MutableBag<T> ofAll(java.lang.Iterable<? extends T> items)
MutableBagFactoryMutableBagFactory.withAll(Iterable).ofAll in interface MutableBagFactorypublic <T> MutableBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface MutableBagFactoryCopyright © 2004–2017. All rights reserved.