public final class MapUtilities extends Object
Modifier | Constructor and Description |
---|---|
private |
MapUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
nullSafePut(Map<String,String> map,
String key,
double value)
Puts the passed key and value into the map only if the value is not -1.
|
static void |
nullSafePut(Map<String,String> map,
String key,
int value)
Puts the passed key and value into the map only if the value is not -1.
|
static void |
nullSafePut(Map<String,String> map,
String key,
Integer value)
Puts the passed key and value into the map only if the value is not null.
|
static void |
nullSafePut(Map<String,String> map,
String key,
String value)
Puts the passed key and value into the map only if the value is not null.
|
private MapUtilities()
public static void nullSafePut(Map<String,String> map, String key, String value)
map
- Map to add key and value to.key
- Map key.value
- Map value, if null will not be added to map.public static void nullSafePut(Map<String,String> map, String key, Integer value)
map
- Map to add key and value to.key
- Map key.value
- Map value, if null will not be added to map.public static void nullSafePut(Map<String,String> map, String key, int value)
map
- Map to add key and value to.key
- Map key.value
- Map value, if -1 will not be added to map.public static void nullSafePut(Map<String,String> map, String key, double value)
map
- Map to add key and value to.key
- Map key.value
- Map value, if -1 will not be added to map.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses