MutableBagFactory
public class MutableBagFactoryImpl extends 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(Stream<? extends T> stream) |
|
<T> MutableBag<T> |
with(T... elements) |
|
<T> MutableBag<T> |
withAll(Iterable<? extends T> items) |
of, of, ofAll, with
public static final MutableBagFactory INSTANCE
public <T> MutableBag<T> empty()
empty
in interface MutableBagFactory
public <T> MutableBag<T> with(T... elements)
with
in interface MutableBagFactory
public <T> MutableBag<T> withAll(Iterable<? extends T> items)
withAll
in interface MutableBagFactory
public <T> MutableBag<T> fromStream(Stream<? extends T> stream)
fromStream
in interface MutableBagFactory
Copyright © 2004–2019. All rights reserved.