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(List<AnnotatedEventHandler<?>> eventHandlers)
extends Record
implements EventChannelListener
-
Constructor Summary
ConstructorsConstructorDescriptionEventHandlerRegistry(List<AnnotatedEventHandler<?>> eventHandlers) Creates an instance of aEventHandlerRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionempty()final 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) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventHandlerRegistry
Creates an instance of aEventHandlerRegistryrecord class.- Parameters:
eventHandlers- 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). -
eventHandlers
Returns the value of theeventHandlersrecord component.- Returns:
- the value of the
eventHandlersrecord component
-