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

public final Class Lists

extends Object
Class Inheritance
Annotations
@SuppressWarnings:ConstantNamingConvention
@ServiceConsumers:@aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.list.ImmutableListFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.list.MutableListFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.list.FixedSizeListFactory.class), @aQute.bnd.annotation.spi.ServiceConsumer(org.eclipse.collections.api.factory.list.MultiReaderListFactory.class)
Imports
org.eclipse.collections.api.factory.list.FixedSizeListFactory, .ImmutableListFactory, .MultiReaderListFactory, .MutableListFactory

This class should be used to create instances of MutableList, ImmutableList and FixedSizeList

Mutable Examples:

MutableList<String> emptyList = Lists.mutable.empty();
MutableList<String> listWith = Lists.mutable.with("a", "b", "c");
MutableList<String> listOf = Lists.mutable.of("a", "b", "c");
Immutable Examples:
ImmutableList<String> emptyList = Lists.immutable.empty();
ImmutableList<String> listWith = Lists.immutable.with("a", "b", "c");
ImmutableList<String> listOf = Lists.immutable.of("a", "b", "c");
FixedSize Examples:
FixedSizeList<String> emptyList = Lists.fixedSize.empty();
FixedSizeList<String> listWith = Lists.fixedSize.with("a", "b", "c");
FixedSizeList<String> listOf = Lists.fixedSize.of("a", "b", "c");
MultiReader Examples:
MultiReaderList<String> emptyList = Lists.multiReader.empty();
MultiReaderList<String> listWith = Lists.multiReader.with("a", "b", "c");
MultiReaderList<String> listOf = Lists.multiReader.of("a", "b", "c");

Field Summary

Modifier and TypeField and Description
public static final FixedSizeListFactory
public static final ImmutableListFactory
public static final MultiReaderListFactory
public static final MutableListFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fixedSizeback to summary
public static final FixedSizeListFactory fixedSize
immutableback to summary
public static final ImmutableListFactory immutable
multiReaderback to summary
public static final MultiReaderListFactory multiReader
mutableback to summary
public static final MutableListFactory mutable

Constructor Detail

Listsback to summary
private Lists()