Class Lists
java.lang.Object
org.eclipse.collections.impl.factory.Lists
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");
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FixedSizeListFactorystatic final ImmutableListFactorystatic final MultiReaderListFactorystatic final MutableListFactory -
Method Summary
-
Field Details
-
immutable
-
mutable
-
fixedSize
-
multiReader
-
-
Method Details
-
adapt
- Since:
- 9.0.
-