Class EventAttributeMap
java.lang.Object
org.apache.polaris.service.events.EventAttributeMap
A type-safe container for event attributes. This class is mutable and not thread-safe!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(AttributeKey<?> key) voidforEach(BiConsumer<AttributeKey<?>, Object> consumer) <T> Optional<T> get(AttributeKey<T> key) <T> TgetRequired(AttributeKey<T> key) booleanisEmpty()put(AttributeKey<T> key, T value) intsize()
-
Constructor Details
-
EventAttributeMap
public EventAttributeMap() -
EventAttributeMap
-
-
Method Details
-
get
-
getRequired
-
put
-
contains
-
size
public int size() -
isEmpty
public boolean isEmpty() -
forEach
-