MutableSetFactory
public enum MutableSetFactoryImpl extends java.lang.Enum<MutableSetFactoryImpl> 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> items) |
Same as
MutableSetFactory.withAll(Iterable) . |
<T> MutableSet<T> |
ofInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty() . |
static MutableSetFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableSetFactoryImpl[] |
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> items) |
|
<T> MutableSet<T> |
withInitialCapacity(int capacity) |
Same as
MutableSetFactory.empty() . |
public static final MutableSetFactoryImpl INSTANCE
public static MutableSetFactoryImpl[] values()
for (MutableSetFactoryImpl c : MutableSetFactoryImpl.values()) System.out.println(c);
public static MutableSetFactoryImpl 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 MutableSetFactory
public <T> MutableSet<T> of()
MutableSetFactory
MutableSetFactory.empty()
.of
in interface MutableSetFactory
public <T> MutableSet<T> with()
MutableSetFactory
MutableSetFactory.empty()
.with
in interface MutableSetFactory
public <T> MutableSet<T> ofInitialCapacity(int capacity)
MutableSetFactory
MutableSetFactory.empty()
. but takes in initial capacity.ofInitialCapacity
in interface MutableSetFactory
public <T> MutableSet<T> withInitialCapacity(int capacity)
MutableSetFactory
MutableSetFactory.empty()
. but takes in initial capacity.withInitialCapacity
in interface MutableSetFactory
public <T> MutableSet<T> of(T... items)
MutableSetFactory
MutableSetFactory.with(Object[])
.of
in interface MutableSetFactory
public <T> MutableSet<T> with(T... items)
with
in interface MutableSetFactory
public <T> MutableSet<T> ofAll(java.lang.Iterable<? extends T> items)
MutableSetFactory
MutableSetFactory.withAll(Iterable)
.ofAll
in interface MutableSetFactory
public <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
withAll
in interface MutableSetFactory
Copyright © 2004–2017. All rights reserved.