public final class Maps extends Object
Mutable Examples:
MutableMap<String, String> emptyMap = Maps.mutable.empty(); MutableMap<String, String> mapWith = Maps.mutable.with("a", "A", "b", "B", "c", "C"); MutableMap<String, String> mapOf = Maps.mutable.of("a", "A", "b", "B", "c", "C");Immutable Examples:
ImmutableMap<String> mapList = Maps.immutable.empty(); ImmutableMap<String> mapWith = Maps.immutable.with("a", "A", "b", "B", "c", "C"); ImmutableMap<String> mapOf = Maps.immutable.of("a", "A", "b", "B", "c", "C");FixedSize Examples:
FixedSizeMap<String> emptyList = Maps.fixedSize.empty(); FixedSizeMap<String> listWith = Maps.fixedSize.with("a", "A", "b", "B", "c", "C"); FixedSizeMap<String> listOf = Maps.fixedSize.of("a", "A", "b", "B", "c", "C");
Modifier and Type | Field and Description |
---|---|
static FixedSizeMapFactory |
fixedSize |
static ImmutableMapFactory |
immutable |
static MutableMapFactory |
mutable |
public static final ImmutableMapFactory immutable
public static final FixedSizeMapFactory fixedSize
public static final MutableMapFactory mutable
Copyright © 2004–2016. All rights reserved.