Class EventMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
EventMap is a hash map implementation. It can be safely serialzed 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,V>, AbstractMap.SimpleImmutableEntry<K, V> -
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.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
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.
-