FixedSizeSetFactory
public enum FixedSizeSetFactoryImpl extends java.lang.Enum<FixedSizeSetFactoryImpl> implements FixedSizeSetFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<T> FixedSizeSet<T> |
empty() |
|
<T> FixedSizeSet<T> |
of() |
Same as
FixedSizeSetFactory.empty() . |
<T> FixedSizeSet<T> |
of(T one) |
Same as
FixedSizeSetFactory.with(Object) . |
<T> FixedSizeSet<T> |
of(T one,
T two) |
|
<T> FixedSizeSet<T> |
of(T one,
T two,
T three) |
|
<T> FixedSizeSet<T> |
of(T one,
T two,
T three,
T four) |
|
<T> MutableSet<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
static FixedSizeSetFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static FixedSizeSetFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> FixedSizeSet<T> |
with() |
Same as
FixedSizeSetFactory.empty() . |
<T> FixedSizeSet<T> |
with(T one) |
|
<T> FixedSizeSet<T> |
with(T one,
T two) |
|
<T> FixedSizeSet<T> |
with(T one,
T two,
T three) |
|
<T> FixedSizeSet<T> |
with(T one,
T two,
T three,
T four) |
|
<T> MutableSet<T> |
withAll(java.lang.Iterable<? extends T> items) |
public static final FixedSizeSetFactoryImpl INSTANCE
public static FixedSizeSetFactoryImpl[] values()
for (FixedSizeSetFactoryImpl c : FixedSizeSetFactoryImpl.values()) System.out.println(c);
public static FixedSizeSetFactoryImpl 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> FixedSizeSet<T> empty()
empty
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> of()
FixedSizeSetFactory
FixedSizeSetFactory.empty()
.of
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> with()
FixedSizeSetFactory
FixedSizeSetFactory.empty()
.with
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> of(T one)
FixedSizeSetFactory
FixedSizeSetFactory.with(Object)
.of
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> with(T one)
with
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> of(T one, T two)
FixedSizeSetFactory
of
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> with(T one, T two)
with
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> of(T one, T two, T three)
FixedSizeSetFactory
of
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> with(T one, T two, T three)
with
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> of(T one, T two, T three, T four)
FixedSizeSetFactory
of
in interface FixedSizeSetFactory
public <T> FixedSizeSet<T> with(T one, T two, T three, T four)
with
in interface FixedSizeSetFactory
public <T> MutableSet<T> ofAll(java.lang.Iterable<? extends T> items)
FixedSizeSetFactory
ofAll
in interface FixedSizeSetFactory
public <T> MutableSet<T> withAll(java.lang.Iterable<? extends T> items)
withAll
in interface FixedSizeSetFactory
Copyright © 2004–2018. All rights reserved.