Record Class AnnotatedCommandHandler<R, C extends Command<R>>
java.lang.Object
java.lang.Record
app.dodb.smd.api.command.AnnotatedCommandHandler<R,C>
- All Implemented Interfaces:
CommandHandlerBehaviour<R,C>
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedCommandHandler(Provider<?> provider, Method method, Class<C> commandType, MessageArgumentBinder<C, CommandMessage<R, C>> argumentBinder) Creates an instance of aAnnotatedCommandHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentBinderrecord component.Returns the value of thecommandTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static CommandHandlerRegistrystatic CommandHandlerRegistryhandle(CommandMessage<R, C> commandMessage) final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Provider<?> provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotatedCommandHandler
public AnnotatedCommandHandler(Provider<?> provider, Method method, Class<C> commandType, MessageArgumentBinder<C, CommandMessage<R, C>> argumentBinder) Creates an instance of aAnnotatedCommandHandlerrecord class.- Parameters:
provider- the value for theproviderrecord componentmethod- the value for themethodrecord componentcommandType- the value for thecommandTyperecord componentargumentBinder- the value for theargumentBinderrecord component
-
-
Method Details
-
from
-
from
-
handle
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
commandType
Returns the value of thecommandTyperecord component.- Specified by:
commandTypein interfaceCommandHandlerBehaviour<R, C extends Command<R>>- Returns:
- the value of the
commandTyperecord component
-
argumentBinder
Returns the value of theargumentBinderrecord component.- Returns:
- the value of the
argumentBinderrecord component
-