Record Class HandleExceptionVariant
java.lang.Object
java.lang.Record
net.apartium.cocoabeans.commands.exception.HandleExceptionVariant
@AvailableSince("0.0.22")
public record HandleExceptionVariant(Class<? extends Throwable> exceptionType, MethodHandle method, Class<?>[] parameters, GenericNode node, List<ArgumentIndex<?>> argumentIndexList, int priority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHandleExceptionVariant(Class<? extends Throwable> exceptionType, MethodHandle method, Class<?>[] parameters, GenericNode node, List<ArgumentIndex<?>> argumentIndexList, int priority) Creates an instance of aHandleExceptionVariantrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<ArgumentIndex<?>> Returns the value of theargumentIndexListrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionTyperecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.node()Returns the value of thenoderecord component.Class<?>[]Returns the value of theparametersrecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandleExceptionVariant
public HandleExceptionVariant(Class<? extends Throwable> exceptionType, MethodHandle method, Class<?>[] parameters, GenericNode node, List<ArgumentIndex<?>> argumentIndexList, int priority) Creates an instance of aHandleExceptionVariantrecord class.- Parameters:
exceptionType- the value for theexceptionTyperecord componentmethod- the value for themethodrecord componentparameters- the value for theparametersrecord componentnode- the value for thenoderecord componentargumentIndexList- the value for theargumentIndexListrecord componentpriority- the value for thepriorityrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
exceptionType
Returns the value of theexceptionTyperecord component.- Returns:
- the value of the
exceptionTyperecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
argumentIndexList
Returns the value of theargumentIndexListrecord component.- Returns:
- the value of the
argumentIndexListrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-