Class HashMapWithTypeInfo
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> IPropertyTypeResolver
Map with implementation of interface
IPropertyTypeResolver
. The
property type of values can be explicitly passed by calling method defineType(String, Class)
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionHashMapWithTypeInfo
(int initialCapacity) HashMapWithTypeInfo
(int initialCapacity, float loadFactor) HashMapWithTypeInfo
(Map<? extends String, ? extends Object> m) -
Method Summary
Modifier and TypeMethodDescriptiondefineType
(String key, Class type) resolveType
(String propertyName) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
HashMapWithTypeInfo
public HashMapWithTypeInfo() -
HashMapWithTypeInfo
public HashMapWithTypeInfo(int initialCapacity, float loadFactor) -
HashMapWithTypeInfo
public HashMapWithTypeInfo(int initialCapacity) -
HashMapWithTypeInfo
-
-
Method Details
-
defineType
-
resolveType
- Specified by:
resolveType
in interfaceIPropertyTypeResolver
-