Record Class EventHandlerRegistry
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.EventHandlerRegistry
public record EventHandlerRegistry(Map<String, List<AnnotatedEventHandler<?>>> eventHandlersByProcessingGroup)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventHandlerRegistry(Map<String, List<AnnotatedEventHandler<?>>> eventHandlersByProcessingGroup) Creates an instance of aEventHandlerRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionand(EventHandlerRegistry other) static EventHandlerRegistryempty()final booleanIndicates whether some other object is "equal to" this one.Map<String, List<AnnotatedEventHandler<?>>> Returns the value of theeventHandlersByProcessingGrouprecord component.<E extends Event>
Map<String, List<EventHandlerBehaviour<E>>> findBy(EventMessage<E> eventMessage) static EventHandlerRegistryfrom(Set<AnnotatedEventHandler<?>> eventHandlers) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventHandlerRegistry
public EventHandlerRegistry(Map<String, List<AnnotatedEventHandler<?>>> eventHandlersByProcessingGroup) Creates an instance of aEventHandlerRegistryrecord class.- Parameters:
eventHandlersByProcessingGroup- the value for theeventHandlersByProcessingGrouprecord component
-
-
Method Details
-
empty
-
from
-
findBy
public <E extends Event> Map<String, List<EventHandlerBehaviour<E>>> findBy(EventMessage<E> eventMessage) -
and
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
eventHandlersByProcessingGroup
Returns the value of theeventHandlersByProcessingGrouprecord component.- Returns:
- the value of the
eventHandlersByProcessingGrouprecord component
-