List of utility methods to do Map Put
void | putIfNotNull(Map put If Not Null if (map != null && key != null && value != null)
map.put(key, value);
|
void | putIfNotNull(Map put value in map only if not null if (value != null) {
params.put(key, Collections.singleton(String.valueOf(value)));
|
void | putIfNotNullAndTrue(Map Puts a boolean value into a map if the value is not null. if (Boolean.TRUE.equals(boolValue)) {
map.put(key, 0);
|
void | putIfNull(Map map, Object key, Object defaultValue) put If Null if (key == null) throw new IllegalArgumentException("key must be not null"); if (map == null) throw new IllegalArgumentException("map must be not null"); if (map.get(key) == null) { map.put(key, defaultValue); |
void | putIfSet(Map Puts this property in the config if it has been set in any of these values. for (Object value : values) { if (value != null) { config.put(key, value.toString()); return; |
void | putIntoMap(Map put Into Map if (keys.length != values.length) System.err.println("GAUtils.putIntoMap: Error: keys.length != values.length"); for (int i = 0; i < keys.length; i++) m.put(keys[i], values[i]); |
HashMap | putIntoMap(String key, Object value) If the value is equal to {skip} then it will be skipped from adding if (!value.equals("{skip}")) { map.put(key, value); return map; |
void | putItem(Map, ?> map, Object key, Object value) put Item ((Map) map).put(key, value); |
void | putKV(Map map, String k, Object v) put KV map.put(k, v); |
void | putLong(Map put Long properties.put(key, String.valueOf(value)); |