public class TypedMap extends HashMap<String,Object>
Modifier and Type | Class and Description |
---|---|
static class |
TypedMap.RecursiveTypedMap
TypedMap with default type as RecursiveTypedMap.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TypedMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
equals(Object o) |
Class<?> |
getDefaultType()
Allows to specify a default type in case the type for a key is not specified.
|
Class<?> |
getGenericType(String key) |
Class<?> |
getType(String key) |
int |
hashCode() |
Object |
put(String key,
Object value) |
Object |
put(String key,
Object o,
Class<?> type) |
Object |
put(String key,
Object o,
Class<?> type,
Class<?> genericType) |
void |
putGenericType(String key,
Class<?> genericType) |
void |
putType(String key,
Class<?> type) |
void |
putTypes(String key,
Class<?> type,
Class<?> genericType) |
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
toString
public Class<?> getDefaultType()
public boolean equals(Object o)
public int hashCode()