Package org.elasticsearch.common.collect
Class MapBuilder<K,V>
org.elasticsearch.common.collect.MapBuilder<K,V>
public class MapBuilder<K,V>
extends
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMapBuilder<K,V>
clear()
boolean
containsKey(K key)
Build an immutable copy of the map under construction.boolean
isEmpty()
map()
static <K, V> MapBuilder<K,V>
static <K, V> MapBuilder<K,V>
<K,V> map)
MapBuilder<K,V>
MapBuilder<K,V>
MapBuilder<K,V>
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
MapBuilder
public MapBuilder() -
MapBuilder
-
-
Method Details
-
newMapBuilder
-
newMapBuilder
public static <K, V> <K,V> map) -
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
-