MutableBagFactorypublic class MutableBagFactoryImpl extends java.lang.Object implements MutableBagFactory
| Modifier and Type | Field | Description |
|---|---|---|
static MutableBagFactory |
INSTANCE |
| Constructor | Description |
|---|---|
MutableBagFactoryImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> MutableBag<T> |
empty() |
|
<T> MutableBag<T> |
fromStream(java.util.stream.Stream<? extends T> stream) |
|
<T> MutableBag<T> |
with(T... elements) |
|
<T> MutableBag<T> |
withAll(java.lang.Iterable<? extends T> items) |
of, of, ofAll, withpublic static final MutableBagFactory INSTANCE
public <T> MutableBag<T> empty()
empty in interface MutableBagFactorypublic <T> MutableBag<T> with(T... elements)
with in interface MutableBagFactorypublic <T> MutableBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface MutableBagFactorypublic <T> MutableBag<T> fromStream(java.util.stream.Stream<? extends T> stream)
fromStream in interface MutableBagFactoryCopyright © 2004–2020. All rights reserved.