Package co.elastic.clients.util
Class MapBuilder<K,V,B>
java.lang.Object
co.elastic.clients.util.MapBuilder<K,V,B>
- All Implemented Interfaces:
ObjectBuilder<java.util.Map<K,V>>
public class MapBuilder<K,V,B> extends java.lang.Object implements ObjectBuilder<java.util.Map<K,V>>
-
Constructor Summary
Constructors Constructor Description MapBuilder(java.util.function.Supplier<B> builderCtor)
-
Method Summary
Modifier and Type Method Description java.util.Map<K,V>
build()
static <K, V> java.util.Map<K,V>
of(K k1, V v1)
static <K, V> java.util.Map<K,V>
of(K k1, V v1, K k2, V v2)
static <K, V> java.util.Map<K,V>
of(K k1, V v1, K k2, V v2, K k3, V v3)
static <K, V> java.util.Map<K,V>
of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
static <K, V> java.util.Map<K,V>
of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
MapBuilder<K,V,B>
put(K key, java.util.function.Function<B,ObjectBuilder<V>> fn)
MapBuilder<K,V,B>
put(K key, V value)
MapBuilder<K,V,B>
putAll(java.lang.Iterable<java.util.Map.Entry<? extends K,? extends V>> entries)
MapBuilder<K,V,B>
putAll(java.util.Map<? extends K,? extends V> map)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MapBuilder
-
-
Method Details
-
put
-
put
-
putAll
-
putAll
-
build
- Specified by:
build
in interfaceObjectBuilder<K>
-
of
public static <K, V> java.util.Map<K,V> of(K k1, V v1) -
of
public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2) -
of
public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3) -
of
public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) -
of
public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
-