Package com.identityworksllc.iiq.common
Class MapTuple
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.identityworksllc.iiq.common.MapTuple
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public final class MapTuple extends HashMap<String,Object> implements Serializable
An extension of HashMap that can be produced byMapTupleBuilder
.Values can be accessed using either
HashMap.get(Object)
orgetAt(int)
, referencing by index or by key.This class also implements the first six ‘tuple’ getters, such as getFirst, getSecond, etc, which are equivalent to calling getAt(0), getAt(1), etc.
- See Also:
- Serialized Form
-
-
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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(String key, Class<T> expectedClass)
Object
getAt(int index)
<T> T
getAt(int index, Class<T> expectedClass)
Object
getFifth()
Object
getFirst()
Object
getFourth()
Object
getSecond()
Object
getSixth()
Object
getThird()
-
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
-
-