K - key typeV - value typepublic class MapBuilder<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
MapBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<K,V> |
build()
Builds the actual map.
|
MapBuilder<K,V> |
put(K key,
V value)
Adds a key - value pair to the map.
|