public class ImmutableBagFactoryImpl extends Object implements ImmutableBagFactory
| Modifier and Type | Field and Description |
|---|---|
static ImmutableBagFactory |
INSTANCE |
| Constructor and Description |
|---|
ImmutableBagFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableBag<T> |
empty() |
<T> ImmutableBag<T> |
of() |
<T> ImmutableBag<T> |
of(T... elements) |
<T> ImmutableBag<T> |
of(T element) |
<T> ImmutableBag<T> |
ofAll(Iterable<? extends T> items) |
<T> ImmutableBag<T> |
with() |
<T> ImmutableBag<T> |
with(T... elements) |
<T> ImmutableBag<T> |
with(T element) |
<T> ImmutableBag<T> |
withAll(Iterable<? extends T> items) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromStream, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrencespublic static final ImmutableBagFactory INSTANCE
public <T> ImmutableBag<T> empty()
empty in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of()
of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with()
with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of(T element)
of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with(T element)
with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> of(T... elements)
of in interface ImmutableBagFactorypublic <T> ImmutableBag<T> with(T... elements)
with in interface ImmutableBagFactorypublic <T> ImmutableBag<T> ofAll(Iterable<? extends T> items)
ofAll in interface ImmutableBagFactorypublic <T> ImmutableBag<T> withAll(Iterable<? extends T> items)
withAll in interface ImmutableBagFactoryCopyright © 2004–2022. All rights reserved.