Record Class ProcessingGroupRegistry.EventHandlerRegistry
java.lang.Object
java.lang.Record
app.dodb.smd.api.event.ProcessingGroupRegistry.EventHandlerRegistry
- All Implemented Interfaces:
EventChannelListener
- Enclosing class:
ProcessingGroupRegistry
public static record ProcessingGroupRegistry.EventHandlerRegistry(String processingGroup, List<AnnotatedEventHandler<?>> eventHandlers)
extends Record
implements EventChannelListener
-
Constructor Summary
ConstructorsConstructorDescriptionEventHandlerRegistry(String processingGroup, List<AnnotatedEventHandler<?>> eventHandlers) Creates an instance of aEventHandlerRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventHandlersrecord component.final inthashCode()Returns a hash code value for this object.<E extends Event>
voidon(EventMessage<E> eventMessage) Returns the value of theprocessingGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventHandlerRegistry
Creates an instance of aEventHandlerRegistryrecord class.- Parameters:
processingGroup- the value for theprocessingGrouprecord componenteventHandlers- the value for theeventHandlersrecord component
-
-
Method Details
-
empty
-
on
- Specified by:
onin interfaceEventChannelListener
-
combine
public ProcessingGroupRegistry.EventHandlerRegistry combine(ProcessingGroupRegistry.EventHandlerRegistry registry) -
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). -
processingGroup
Returns the value of theprocessingGrouprecord component.- Specified by:
processingGroupin interfaceEventChannelListener- Returns:
- the value of the
processingGrouprecord component
-
eventHandlers
Returns the value of theeventHandlersrecord component.- Returns:
- the value of the
eventHandlersrecord component
-