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

public final Class Maps

extends Object
Class Inheritance
Annotations
@SuppressWarnings:ConstantNamingConvention
Imports
java.util.Map, org.eclipse.collections.api.factory.map.FixedSizeMapFactory, .ImmutableMapFactory, .MutableMapFactory, org.eclipse.collections.api.map.MutableMap, org.eclipse.collections.impl.map.fixed.FixedSizeMapFactoryImpl, org.eclipse.collections.impl.map.immutable.ImmutableMapFactoryImpl, org.eclipse.collections.impl.map.mutable.MapAdapter, .MutableMapFactoryImpl

This class should be used to create instances of MutableMap, ImmutableMap and FixedSizeMap

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, String> emptyMap = Maps.immutable.empty();
ImmutableMap<String, String> mapWith = Maps.immutable.with("a", "A", "b", "B", "c", "C");
ImmutableMap<String, String> mapOf = Maps.immutable.of("a", "A", "b", "B", "c", "C");
FixedSize Examples:
FixedSizeMap<String, String> emptyMap = Maps.fixedSize.empty();
FixedSizeMap<String, String> mapWith = Maps.fixedSize.with("a", "A", "b", "B", "c", "C");
FixedSizeMap<String, String> mapOf = Maps.fixedSize.of("a", "A", "b", "B", "c", "C");

Field Summary

Modifier and TypeField and Description
public static final FixedSizeMapFactory
public static final ImmutableMapFactory
public static final MutableMapFactory

Constructor Summary

AccessConstructor and Description
private
Maps()

Method Summary

Modifier and TypeMethod and Description
public static <K, V> MutableMap<K, V>
adapt(Map<K, V> map)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fixedSizeback to summary
public static final FixedSizeMapFactory fixedSize
immutableback to summary
public static final ImmutableMapFactory immutable
mutableback to summary
public static final MutableMapFactory mutable

Constructor Detail

Mapsback to summary
private Maps()

Method Detail

adaptback to summary
public static <K, V> MutableMap<K, V> adapt(Map<K, V> map)
Since
9.0.