public class MapBuilder<M extends Map<K,V>,K,V> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <M extends Map<K,V>,K,V> |
create(M m) |
M |
get() |
static <K,V> MapBuilder<HashMap<K,V>,K,V> |
hashMap()
Creates a new instance.
|
static <K,V> MapBuilder<HashMap<K,V>,K,V> |
hashMap(K k,
V v)
Creates a new instance.
|
static <K,V> MapBuilder<LinkedHashMap<K,V>,K,V> |
linkedHashMap()
Creates a new instance.
|
static <K,V> MapBuilder<LinkedHashMap<K,V>,K,V> |
linkedHashMap(K k,
V v)
Creates a new instance.
|
MapBuilder<M,K,V> |
put(K key,
V value)
Add the object to the collection.
|
MapBuilder<M,K,V> |
putAll(M all)
Add all the objects to the collection.
|
static <K,V> MapBuilder<TreeMap<K,V>,K,V> |
treeMap()
Creates a new instance.
|
static <K,V> MapBuilder<TreeMap<K,V>,K,V> |
treeMap(K k,
V v)
Creates a new instance.
|
public static <K,V> MapBuilder<HashMap<K,V>,K,V> hashMap()
public static <K,V> MapBuilder<HashMap<K,V>,K,V> hashMap(K k, V v)
public static <K,V> MapBuilder<TreeMap<K,V>,K,V> treeMap()
public static <K,V> MapBuilder<TreeMap<K,V>,K,V> treeMap(K k, V v)
public static <K,V> MapBuilder<LinkedHashMap<K,V>,K,V> linkedHashMap()
public static <K,V> MapBuilder<LinkedHashMap<K,V>,K,V> linkedHashMap(K k, V v)
public static <M extends Map<K,V>,K,V> MapBuilder<M,K,V> create(M m)
public MapBuilder<M,K,V> put(K key, V value)
key - the keyvalue - the valuepublic MapBuilder<M,K,V> putAll(M all)
all - the entries to addpublic M get()
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.