Class EventMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
EventMap is a linked hash map implementation where the insertion order of key-value pairs is maintained.
It can be safely serialized to JSON using Jackson serializer as it
respects the polymorphic annotations on entires (unlike standard Map). The example of polymorphic class is a query
interface, where different native query types are resolved by additional field called "queryType".
This implementation ensures that the annotation on the values are respected during serialization.
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert this EventMap to a builder.static EventMap.Builderbuilder()Returns builder with Fluent API to build EventMap instance using method chainingMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
EventMap
public EventMap()
-
-
Method Details
-
builder
Returns builder with Fluent API to build EventMap instance using method chaining -
asBuilder
Convert this EventMap to a builder. Performs copy of the whole EventMap.
-