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

public Interface MutableSetFactory

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

Method Summary

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

public default <T> MutableSet<T>
of()

Same as empty().

public default <T> MutableSet<T>
of(T... items)

Same as with(Object[]).

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

Same as withAll(Iterable).

public default <T> MutableSet<T>
ofInitialCapacity(int capacity)

Same as empty().

public default <T> MutableSet<T>
with()

Same as empty().

public <T> MutableSet<T>
with(T... items)

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

public <T> MutableSet<T>
withInitialCapacity(int capacity)

Same as empty().

Method Detail

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

Same as empty().

ofback to summary
public default <T> MutableSet<T> of(T... items)

Same as with(Object[]).

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

Same as withAll(Iterable).

ofInitialCapacityback to summary
public default <T> MutableSet<T> ofInitialCapacity(int capacity)

Same as empty(). but takes in initial capacity.

withback to summary
public default <T> MutableSet<T> with()

Same as empty().

withback to summary
public <T> MutableSet<T> with(T... items)
withAllback to summary
public <T> MutableSet<T> withAll(Iterable<? extends T> items)
withInitialCapacityback to summary
public <T> MutableSet<T> withInitialCapacity(int capacity)

Same as empty(). but takes in initial capacity.