Package com.identityworksllc.iiq.common
Class TypeFriendlyDelegatedMap<K,V>
- java.lang.Object
-
- com.identityworksllc.iiq.common.TypeFriendlyDelegatedMap<K,V>
-
- Type Parameters:
K
-V
-
- All Implemented Interfaces:
DelegatedMap<K,V>
,TypeFriendlyMap<K,V>
,Map<K,V>
- Direct Known Subclasses:
TypeFriendlyDelegatedConcurrentMap
public class TypeFriendlyDelegatedMap<K,V> extends Object implements DelegatedMap<K,V>, TypeFriendlyMap<K,V>
The TypeFriendlyDelegatedMap class combinesDelegatedMap
andTypeFriendlyMap
in a single decorator class.Wrapping your existing
Map
into this class automatically creates
-
-
Constructor Summary
Constructors Constructor Description TypeFriendlyDelegatedMap(Map<K,V> input)
Wraps an existing Map in aTypeFriendlyMap
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<K,V>
getDelegate()
Returns the Map that is wrapped by this oneObject
writeReplace()
During serialization, replaces this object in the output stream with its delegate.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.identityworksllc.iiq.common.DelegatedMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface com.identityworksllc.iiq.common.TypeFriendlyMap
getAs, getBoolean, getInt, getLong, getSailPointObject, getString, getStringList
-
-
-
-
Constructor Detail
-
TypeFriendlyDelegatedMap
public TypeFriendlyDelegatedMap(Map<K,V> input)
Wraps an existing Map in aTypeFriendlyMap
.- Parameters:
input
- The map to wrap withTypeFriendlyMap
functions
-
-
Method Detail
-
getDelegate
public Map<K,V> getDelegate()
Returns the Map that is wrapped by this one- Specified by:
getDelegate
in interfaceDelegatedMap<K,V>
- Returns:
- The map to which all calls should be delegated
-
writeReplace
public Object writeReplace() throws ObjectStreamException
During serialization, replaces this object in the output stream with its delegate.- Returns:
- The delegate object
- Throws:
ObjectStreamException
- If any failures occur (they won’t)
-
-