@Immutable public final class MutableSetFactoryImpl extends Object implements MutableSetFactory
| Constructor and Description |
|---|
MutableSetFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> MutableSet<T> |
empty() |
<T> MutableSet<T> |
of()
Same as
MutableSetFactory.empty(). |
<T> MutableSet<T> |
of(T... items)
Same as
MutableSetFactory.with(Object[]). |
<T> MutableSet<T> |
ofAll(Iterable<? extends T> items)
Same as
MutableSetFactory.withAll(Iterable). |
<T> MutableSet<T> |
ofInitialCapacity(int capacity)
Same as
MutableSetFactory.empty(). |
<T> MutableSet<T> |
with()
Same as
MutableSetFactory.empty(). |
<T> MutableSet<T> |
with(T... items) |
<T> MutableSet<T> |
withAll(Iterable<? extends T> items) |
<T> MutableSet<T> |
withInitialCapacity(int capacity)
Same as
MutableSetFactory.empty(). |
public <T> MutableSet<T> empty()
empty in interface MutableSetFactorypublic <T> MutableSet<T> of()
MutableSetFactoryMutableSetFactory.empty().of in interface MutableSetFactorypublic <T> MutableSet<T> with()
MutableSetFactoryMutableSetFactory.empty().with in interface MutableSetFactorypublic <T> MutableSet<T> ofInitialCapacity(int capacity)
MutableSetFactoryMutableSetFactory.empty(). but takes in initial capacity.ofInitialCapacity in interface MutableSetFactorypublic <T> MutableSet<T> withInitialCapacity(int capacity)
MutableSetFactoryMutableSetFactory.empty(). but takes in initial capacity.withInitialCapacity in interface MutableSetFactorypublic <T> MutableSet<T> of(T... items)
MutableSetFactoryMutableSetFactory.with(Object[]).of in interface MutableSetFactorypublic <T> MutableSet<T> with(T... items)
with in interface MutableSetFactorypublic <T> MutableSet<T> ofAll(Iterable<? extends T> items)
MutableSetFactoryMutableSetFactory.withAll(Iterable).ofAll in interface MutableSetFactorypublic <T> MutableSet<T> withAll(Iterable<? extends T> items)
withAll in interface MutableSetFactoryCopyright © 2004–2016. All rights reserved.