Top Description Fields Constructors Methods
org.eclipse.collections.api.factory

public final Class Sets

extends Object
Class Inheritance
Annotations
@SuppressWarnings:ConstantNamingConvention
@ServiceConsumers:@aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.set.ImmutableSetFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.set.MutableSetFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.set.FixedSizeSetFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.set.MultiReaderSetFactory.class)
Imports
org.eclipse.collections.api.factory.set.FixedSizeSetFactory, .ImmutableSetFactory, .MultiReaderSetFactory, .MutableSetFactory

This class should be used to create instances of MutableSet, ImmutableSet and FixedSizeSet

Mutable Examples:

MutableSet<String> emptySet = Sets.mutable.empty();
MutableSet<String> setWith = Sets.mutable.with("a", "b", "c");
MutableSet<String> setOf = Sets.mutable.of("a", "b", "c");
Immutable Examples:
ImmutableSet<String> emptySet = Sets.immutable.empty();
ImmutableSet<String> setWith = Sets.immutable.with("a", "b", "c");
ImmutableSet<String> setOf = Sets.immutable.of("a", "b", "c");
FixedSize Examples:
FixedSizeSet<String> emptySet = Sets.fixedSize.empty();
FixedSizeSet<String> setWith = Sets.fixedSize.with("a", "b", "c");
FixedSizeSet<String> setOf = Sets.fixedSize.of("a", "b", "c");
MultiReader Examples:
MultiReaderSet<String> emptySet = Sets.multiReader.empty();
MultiReaderSet<String> setWith = Sets.multiReader.with("a", "b", "c");
MultiReaderSet<String> setOf = Sets.multiReader.of("a", "b", "c");

Field Summary

Modifier and TypeField and Description
public static final FixedSizeSetFactory
public static final ImmutableSetFactory
public static final MultiReaderSetFactory
public static final MutableSetFactory

Constructor Summary

AccessConstructor and Description
private
Sets()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fixedSizeback to summary
public static final FixedSizeSetFactory fixedSize
immutableback to summary
public static final ImmutableSetFactory immutable
multiReaderback to summary
public static final MultiReaderSetFactory multiReader
mutableback to summary
public static final MutableSetFactory mutable

Constructor Detail

Setsback to summary
private Sets()