ImmutableBagFactory
public class ImmutableBagFactoryImpl extends Object implements ImmutableBagFactory
Modifier and Type | Field | Description |
---|---|---|
static ImmutableBagFactory |
INSTANCE |
Constructor | Description |
---|---|
ImmutableBagFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
<T> ImmutableBag<T> |
empty() |
|
<T> ImmutableBag<T> |
of() |
Same as
ImmutableBagFactory.empty() . |
<T> ImmutableBag<T> |
of(T element) |
Same as
ImmutableBagFactory.with(Object) . |
<T> ImmutableBag<T> |
of(T... elements) |
Same as
ImmutableBagFactory.with(Object[]) . |
<T> ImmutableBag<T> |
ofAll(Iterable<? extends T> items) |
|
<T> ImmutableBag<T> |
with() |
Same as
ImmutableBagFactory.empty() . |
<T> ImmutableBag<T> |
with(T element) |
|
<T> ImmutableBag<T> |
with(T... elements) |
|
<T> ImmutableBag<T> |
withAll(Iterable<? extends T> items) |
fromStream
public static final ImmutableBagFactory INSTANCE
public <T> ImmutableBag<T> empty()
empty
in interface ImmutableBagFactory
public <T> ImmutableBag<T> of()
ImmutableBagFactory
ImmutableBagFactory.empty()
.of
in interface ImmutableBagFactory
public <T> ImmutableBag<T> with()
ImmutableBagFactory
ImmutableBagFactory.empty()
.with
in interface ImmutableBagFactory
public <T> ImmutableBag<T> of(T element)
ImmutableBagFactory
ImmutableBagFactory.with(Object)
.of
in interface ImmutableBagFactory
public <T> ImmutableBag<T> with(T element)
with
in interface ImmutableBagFactory
public <T> ImmutableBag<T> of(T... elements)
ImmutableBagFactory
ImmutableBagFactory.with(Object[])
.of
in interface ImmutableBagFactory
public <T> ImmutableBag<T> with(T... elements)
with
in interface ImmutableBagFactory
public <T> ImmutableBag<T> ofAll(Iterable<? extends T> items)
ImmutableBagFactory
ofAll
in interface ImmutableBagFactory
public <T> ImmutableBag<T> withAll(Iterable<? extends T> items)
withAll
in interface ImmutableBagFactory
Copyright © 2004–2019. All rights reserved.