Record Class EventHandler.PreparationResult
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.dispatching.handling.EventHandler.PreparationResult
- Enclosing class:
EventHandler<T extends GenericInteractionCreateEvent>
public static record EventHandler.PreparationResult(InteractionDefinition definition, SequencedCollection<@Nullable Object> rawArguments)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreparationResult(InteractionDefinition definition, SequencedCollection<@Nullable Object> rawArguments) Creates an instance of aPreparationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.SequencedCollection<@Nullable Object> Returns the value of therawArgumentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreparationResult
public PreparationResult(InteractionDefinition definition, SequencedCollection<@Nullable Object> rawArguments) Creates an instance of aPreparationResultrecord class.- Parameters:
definition- the value for thedefinitionrecord componentrawArguments- the value for therawArgumentsrecord component
-
-
Method Details
-
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). -
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
rawArguments
Returns the value of therawArgumentsrecord component.- Returns:
- the value of the
rawArgumentsrecord component
-