public class MutableBagFactoryImpl extends Object implements MutableBagFactory
| Modifier and Type | Field and Description |
|---|---|
static MutableBagFactory |
INSTANCE |
| Constructor and Description |
|---|
MutableBagFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableBag<T> |
empty() |
<T> MutableBag<T> |
fromStream(Stream<? extends T> stream) |
<T> MutableBag<T> |
with(T... elements) |
<T> MutableBag<T> |
withAll(Iterable<? extends T> items) |
<T> MutableBag<T> |
withInitialCapacity(int capacity) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, of, ofAll, ofInitialCapacity, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, with, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrencespublic 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(Iterable<? extends T> items)
withAll in interface MutableBagFactorypublic <T> MutableBag<T> fromStream(Stream<? extends T> stream)
fromStream in interface MutableBagFactorypublic <T> MutableBag<T> withInitialCapacity(int capacity)
withInitialCapacity in interface MutableBagFactoryCopyright © 2004–2022. All rights reserved.