@Immutable public final class ImmutableSetFactoryImpl extends Object implements ImmutableSetFactory
Constructor and Description |
---|
ImmutableSetFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> ImmutableSet<T> |
empty() |
<T> ImmutableSet<T> |
of()
Same as
ImmutableSetFactory.empty() . |
<T> ImmutableSet<T> |
of(T... items)
Same as
ImmutableSetFactory.with(Object[]) . |
<T> ImmutableSet<T> |
of(T one)
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(Iterable<? extends T> items)
|
<T> ImmutableSet<T> |
with()
Same as
ImmutableSetFactory.empty() . |
<T> ImmutableSet<T> |
with(T... items) |
<T> ImmutableSet<T> |
with(T one) |
<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(Iterable<? extends T> items) |
public <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(Iterable<? extends T> items)
ImmutableSetFactory
ofAll
in interface ImmutableSetFactory
public <T> ImmutableSet<T> withAll(Iterable<? extends T> items)
withAll
in interface ImmutableSetFactory
Copyright © 2004–2016. All rights reserved.