Package org.elasticsearch.common.collect
Class MapBuilder<K,V>
java.lang.Object
org.elasticsearch.common.collect.MapBuilder<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMapBuilder<K,V>clear()booleancontainsKey(K key)Build an immutable copy of the map under construction.booleanisEmpty()map()static <K, V> MapBuilder<K,V>static <K, V> MapBuilder<K,V>newMapBuilder(Map<K,V> map)MapBuilder<K,V>MapBuilder<K,V>MapBuilder<K,V>
-
Constructor Details
-
MapBuilder
public MapBuilder() -
MapBuilder
-
-
Method Details
-
newMapBuilder
-
newMapBuilder
-
putAll
-
put
-
remove
-
clear
-
get
-
containsKey
-
isEmpty
public boolean isEmpty() -
map
-
immutableMap
Build an immutable copy of the map under construction. Always copies the map under construction. Prefer building a HashMap by hand and wrapping it in an unmodifiableMap
-