ImmutableBagFactorypublic class ImmutableBagFactoryImpl extends java.lang.Object implements ImmutableBagFactory
| Modifier and Type | Field | Description |
|---|---|---|
static ImmutableBagFactory |
INSTANCE |
| Constructor | Description |
|---|---|
ImmutableBagFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> ImmutableBag<T> |
empty() |
|
<T> ImmutableBag<T> |
of() |
Same as
ImmutableBagFactory.empty(). |
<T> ImmutableBag<T> |
of(T element) |
Same as
ImmutableBagFactory.with(Object). |
<T> ImmutableBag<T> |
of(T... elements) |
Same as
ImmutableBagFactory.with(Object[]). |
<T> ImmutableBag<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableBag<T> |
with() |
Same as
ImmutableBagFactory.empty(). |
<T> ImmutableBag<T> |
with(T element) |
|
<T> ImmutableBag<T> |
with(T... elements) |
|
<T> ImmutableBag<T> |
withAll(java.lang.Iterable<? extends T> items) |
fromStreampublic static final ImmutableBagFactory INSTANCE
public <T> ImmutableBag<T> empty()
empty in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of()
ImmutableBagFactoryImmutableBagFactory.empty().of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with()
ImmutableBagFactoryImmutableBagFactory.empty().with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of(T element)
ImmutableBagFactoryImmutableBagFactory.with(Object).of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with(T element)
with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of(T... elements)
ImmutableBagFactoryImmutableBagFactory.with(Object[]).of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with(T... elements)
with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableBagFactoryofAll in interface ImmutableBagFactorypublic <T> ImmutableBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface ImmutableBagFactoryCopyright © 2004–2020. All rights reserved.