MutableSetFactorypublic enum MultiReaderMutableSetFactory extends java.lang.Enum<MultiReaderMutableSetFactory> implements MutableSetFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | 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(java.lang.Iterable<? extends T> iterable) |
Same as
MutableSetFactory.withAll(Iterable). |
<T> MutableSet<T> |
ofInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty(). |
static MultiReaderMutableSetFactory |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MultiReaderMutableSetFactory[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableSet<T> |
with() |
Same as
MutableSetFactory.empty(). |
<T> MutableSet<T> |
with(T... items) |
|
<T> MutableSet<T> |
withAll(java.lang.Iterable<? extends T> iterable) |
|
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty(). |
public static final MultiReaderMutableSetFactory INSTANCE
public static MultiReaderMutableSetFactory[] values()
for (MultiReaderMutableSetFactory c : MultiReaderMutableSetFactory.values()) System.out.println(c);
public static MultiReaderMutableSetFactory valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <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> of(T... items)
MutableSetFactoryMutableSetFactory.with(Object[]).of in interface MutableSetFactorypublic <T> MutableSet<T> with(T... items)
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> ofAll(java.lang.Iterable<? extends T> iterable)
MutableSetFactoryMutableSetFactory.withAll(Iterable).ofAll in interface MutableSetFactorypublic <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> iterable)
withAll in interface MutableSetFactoryCopyright © 2004–2018. All rights reserved.