Top Methods
org.eclipse.collections.api.factory.set

public Interface FixedSizeSetFactory

Imports
java.util.stream.Stream, org.eclipse.collections.api.set.FixedSizeSet, .MutableSet

Method Summary

Modifier and TypeMethod and Description
public <T> FixedSizeSet<T>
public <T> MutableSet<T>
fromStream(Stream<? extends T> stream)

public <T> FixedSizeSet<T>
of()

Same as empty().

public <T> FixedSizeSet<T>
of(T one)

Same as with(Object).

public <T> FixedSizeSet<T>
of(T one, T two)

Same as with(Object, Object).

public <T> FixedSizeSet<T>
of(T one, T two, T three)

Same as with(Object, Object, Object).

public <T> FixedSizeSet<T>
of(T one, T two, T three, T four)

Same as with(Object, Object, Object, Object).

public <T> MutableSet<T>
ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

public <T> FixedSizeSet<T>
with()

Same as empty().

public <T> FixedSizeSet<T>
with(T one)

public <T> FixedSizeSet<T>
with(T one, T two)

public <T> FixedSizeSet<T>
with(T one, T two, T three)

public <T> FixedSizeSet<T>
with(T one, T two, T three, T four)

public <T> MutableSet<T>
withAll(Iterable<? extends T> items)

Method Detail

emptyback to summary
public <T> FixedSizeSet<T> empty()
Since
6.0
fromStreamback to summary
public <T> MutableSet<T> fromStream(Stream<? extends T> stream)
Since
10.0.0
ofback to summary
public <T> FixedSizeSet<T> of()

Same as empty().

ofback to summary
public <T> FixedSizeSet<T> of(T one)

Same as with(Object).

ofback to summary
public <T> FixedSizeSet<T> of(T one, T two)

Same as with(Object, Object).

ofback to summary
public <T> FixedSizeSet<T> of(T one, T two, T three)

Same as with(Object, Object, Object).

ofback to summary
public <T> FixedSizeSet<T> of(T one, T two, T three, T four)

Same as with(Object, Object, Object, Object).

ofAllback to summary
public <T> MutableSet<T> ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

withback to summary
public <T> FixedSizeSet<T> with()

Same as empty().

withback to summary
public <T> FixedSizeSet<T> with(T one)
withback to summary
public <T> FixedSizeSet<T> with(T one, T two)
withback to summary
public <T> FixedSizeSet<T> with(T one, T two, T three)
withback to summary
public <T> FixedSizeSet<T> with(T one, T two, T three, T four)
withAllback to summary
public <T> MutableSet<T> withAll(Iterable<? extends T> items)