@Immutable public final class MutableBagFactoryImpl extends Object implements MutableBagFactory
Constructor and Description |
---|
MutableBagFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> MutableBag<T> |
empty() |
<T> MutableBag<T> |
of()
Same as
MutableBagFactory.empty() . |
<T> MutableBag<T> |
of(T... elements)
Same as
MutableBagFactory.with(Object[]) . |
<T> MutableBag<T> |
with()
Same as
MutableBagFactory.empty() . |
<T> MutableBag<T> |
with(T... elements) |
public <T> MutableBag<T> empty()
empty
in interface MutableBagFactory
public <T> MutableBag<T> of()
MutableBagFactory
MutableBagFactory.empty()
.of
in interface MutableBagFactory
public <T> MutableBag<T> with()
MutableBagFactory
MutableBagFactory.empty()
.with
in interface MutableBagFactory
public <T> MutableBag<T> of(T... elements)
MutableBagFactory
MutableBagFactory.with(Object[])
.of
in interface MutableBagFactory
public <T> MutableBag<T> with(T... elements)
with
in interface MutableBagFactory
Copyright © 2004–2016. All rights reserved.