public class Maps
extends java.lang.Object
Constructor and Description |
---|
Maps() |
Modifier and Type | Method and Description |
---|---|
static boolean |
booleanValue(java.util.Map<java.lang.String,?> map,
java.lang.String key)
Returns the boolean value of the given property in the map or false
|
static boolean |
booleanValue(java.util.Map<java.lang.String,?> map,
java.lang.String key,
boolean defaultValue)
Returns the boolean value of the given property in the map or returns the default value if its not present
|
static <K,V> void |
putAll(java.util.Map<K,V> output,
java.util.Map<K,V> input,
K... keys)
Copies the entries for the given keys form the input map to the output map
|
static void |
setValue(java.util.Map map,
java.lang.String key,
java.lang.Object value)
Sets the value in the map for the given key; if the value is null then remove the value from the map
|
static java.lang.String |
stringValue(java.util.Map map,
java.lang.String key)
Returns the String value of the given property in the map or null
|
static java.lang.String |
stringValue(java.util.Map map,
java.lang.String key,
java.lang.String defaultValue)
Returns the String value of the given property in the map if its defined or the default value
|
static java.lang.Object |
value(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String key,
java.lang.Object defaultValue)
Returns the value of the given property in the map
|
public static <K,V> void putAll(java.util.Map<K,V> output, java.util.Map<K,V> input, K... keys)
public static boolean booleanValue(java.util.Map<java.lang.String,?> map, java.lang.String key)
public static boolean booleanValue(java.util.Map<java.lang.String,?> map, java.lang.String key, boolean defaultValue)
public static java.lang.Object value(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String key, java.lang.Object defaultValue)
public static java.lang.String stringValue(java.util.Map map, java.lang.String key)
public static java.lang.String stringValue(java.util.Map map, java.lang.String key, java.lang.String defaultValue)
public static void setValue(java.util.Map map, java.lang.String key, java.lang.Object value)
Copyright © 2014 Red Hat. All Rights Reserved.