Class EventMap

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<String,​Object>

    public class EventMap
    extends HashMap<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:
    Serialized Form
    • Constructor Detail

      • EventMap

        public EventMap()
    • Method Detail

      • builder

        public static EventMap.Builder builder()
        Returns builder with Fluent API to build EventMap instance using method chaining
      • asBuilder

        public EventMap.Builder asBuilder()
        Convert this EventMap to a builder. Performs copy of the whole EventMap.