public class Maps extends Object
Constructor and Description |
---|
Maps() |
Modifier and Type | Method and Description |
---|---|
static MapBuilder |
map()
Instantiates a new
MapBuilder using a HashMap. |
static MapBuilder |
map(Map map)
Instantiates a new
MapBuilder using the given map. |
static MapBuilder |
map(Object key,
Object value)
Instantiates a new
MapBuilder using a HashMap and the given key/value entry. |
public static MapBuilder map()
MapBuilder
using a HashMap.MapBuilder
instance.public static MapBuilder map(Object key, Object value)
MapBuilder
using a HashMap and the given key/value entry.key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keyMapBuilder
instance.public static MapBuilder map(Map map)
MapBuilder
using the given map.map
- The delegate map to use.MapBuilder
instance.