Record Class CommandHandlerRegistry
java.lang.Object
java.lang.Record
app.dodb.smd.api.command.CommandHandlerRegistry
public record CommandHandlerRegistry(Set<AnnotatedCommandHandler<?,?>> commandHandlers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCommandHandlerRegistry(Set<AnnotatedCommandHandler<?, ?>> commandHandlers) Creates an instance of aCommandHandlerRegistryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionand(CommandHandlerRegistry other) Set<AnnotatedCommandHandler<?, ?>> Returns the value of thecommandHandlersrecord component.static CommandHandlerRegistryempty()final booleanIndicates whether some other object is "equal to" this one.<R, C extends Command<R>>
CommandHandlerBehaviour<R, C> findBy(CommandMessage<R, C> commandMessage) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CommandHandlerRegistry
Creates an instance of aCommandHandlerRegistryrecord class.- Parameters:
commandHandlers- the value for thecommandHandlersrecord component
-
-
Method Details
-
empty
-
findBy
public <R, C extends Command<R>> CommandHandlerBehaviour<R,C> findBy(CommandMessage<R, C> commandMessage) -
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). -
commandHandlers
Returns the value of thecommandHandlersrecord component.- Returns:
- the value of the
commandHandlersrecord component
-