public class KeyValueMap extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
KeyValueMap() |
Modifier and Type | Method and Description |
---|---|
static KeyValueMap |
fromKeyValues(Object... keyValues) |
float |
getFloat(String key) |
int |
getInt(String key) |
String |
getString(String key) |
void |
setKeyValues(Object... keyValues) |
String |
toString()
Returns a string representation of this map.
|
clear, clone, containsKey, containsValue, entrySet, forEach, get, isEmpty, keySet, put, putAll, remove, replace, replaceAll, size, values
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace
public void setKeyValues(Object... keyValues)
public static KeyValueMap fromKeyValues(Object... keyValues)
public int getInt(String key)
public float getFloat(String key)
public String toString()
AbstractMap
String.valueOf(Object)
.toString
in class AbstractMap<String,Object>