public interface ImmutableBagFactory
ImmutableBag.| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableBag<T> |
empty() |
<T> ImmutableBag<T> |
of()
Same as
empty(). |
<T> ImmutableBag<T> |
of(T... elements)
Same as
with(Object[]). |
<T> ImmutableBag<T> |
of(T element)
Same as
with(Object). |
<T> ImmutableBag<T> |
ofAll(Iterable<? extends T> items)
Same as
withAll(Iterable). |
<T> ImmutableBag<T> |
with()
Same as
empty(). |
<T> ImmutableBag<T> |
with(T... elements) |
<T> ImmutableBag<T> |
with(T element) |
<T> ImmutableBag<T> |
withAll(Iterable<? extends T> items) |
<T> ImmutableBag<T> empty()
<T> ImmutableBag<T> of()
empty().<T> ImmutableBag<T> with()
empty().<T> ImmutableBag<T> of(T element)
with(Object).<T> ImmutableBag<T> with(T element)
<T> ImmutableBag<T> of(T... elements)
with(Object[]).<T> ImmutableBag<T> with(T... elements)
<T> ImmutableBag<T> ofAll(Iterable<? extends T> items)
withAll(Iterable).<T> ImmutableBag<T> withAll(Iterable<? extends T> items)
Copyright © 2004–2016. All rights reserved.