Record Class MessageArgumentBinder<P, M extends Message<P,M> >
java.lang.Object
java.lang.Record
app.dodb.smd.api.utils.MessageArgumentBinder<P,M>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMessageArgumentBinder(List<MessageArgumentBinder.ArgumentExtractor<P, M>> argumentExtractors) Creates an instance of aMessageArgumentBinderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentExtractorsrecord component.final booleanIndicates whether some other object is "equal to" this one.static <P, M extends Message<P,M>>
MessageArgumentBinder<P, M> fromMethodParameters(Class<P> payloadClass, Parameter[] parameters) final inthashCode()Returns a hash code value for this object.Object[]toArguments(Message<P, M> message) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageArgumentBinder
Creates an instance of aMessageArgumentBinderrecord class.- Parameters:
argumentExtractors- the value for theargumentExtractorsrecord component
-
-
Method Details
-
fromMethodParameters
public static <P, M extends Message<P,M>> MessageArgumentBinder<P,M> fromMethodParameters(Class<P> payloadClass, Parameter[] parameters) -
toArguments
-
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). -
argumentExtractors
Returns the value of theargumentExtractorsrecord component.- Returns:
- the value of the
argumentExtractorsrecord component
-