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