public final class Lists extends Object
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");
| Modifier and Type | Field and Description |
|---|---|
static FixedSizeListFactory |
fixedSize |
static ImmutableListFactory |
immutable |
static MultiReaderListFactory |
multiReader |
static MutableListFactory |
mutable |
| Modifier and Type | Method and Description |
|---|---|
static <T> MutableList<T> |
adapt(List<T> list) |
public static final ImmutableListFactory immutable
public static final MutableListFactory mutable
public static final FixedSizeListFactory fixedSize
public static final MultiReaderListFactory multiReader
public static <T> MutableList<T> adapt(List<T> list)
Copyright © 2004–2022. All rights reserved.