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