Record Class InteractionFinishedEvent
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.property.events.InteractionFinishedEvent
- Record Components:
invocationContext- theInvocationContextthat was used to invoke the interaction controller methodexception- theExceptionthrown byInvoker.invoke(Object, SequencedCollection)ornullif no exception was thrown
@IntrospectionAccess(INTERACTION)
public record InteractionFinishedEvent(InvocationContext<?> invocationContext, @Nullable Exception exception)
extends Record
implements JDACEvent
Published after an interaction controller method is called.
-
Constructor Summary
ConstructorsConstructorDescriptionInteractionFinishedEvent(InvocationContext<?> invocationContext, @Nullable Exception exception) Creates an instance of aInteractionFinishedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable ExceptionReturns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationContextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InteractionFinishedEvent
public InteractionFinishedEvent(InvocationContext<?> invocationContext, @Nullable Exception exception) Creates an instance of aInteractionFinishedEventrecord class.- Parameters:
invocationContext- the value for theinvocationContextrecord componentexception- the value for theexceptionrecord 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). -
invocationContext
Returns the value of theinvocationContextrecord component.- Returns:
- the value of the
invocationContextrecord component
-
exception
-