Record Class Operator
java.lang.Object
java.lang.Record
org.skriptlang.skript.lang.arithmetic.Operator
- Record Components:
sign- the symbolic representation of the operator (e.g., "+", "-").node- localized name of the operator
- All Implemented Interfaces:
Comparable<Operator>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.getName()final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.priority()Returns the value of thepriorityrecord component.sign()Returns the value of thesignrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
ADDITION_SUBTRACTION_PRIORITY
-
MULTIPLICATION_DIVISION_PRIORITY
-
EXPONENTIATION_PRIORITY
-
ADDITION
-
SUBTRACTION
-
MULTIPLICATION
-
DIVISION
-
EXPONENTIATION
-
-
Constructor Details
-
Operator
-
Operator
-
Operator
-
Operator
-
-
Method Details
-
getName
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Operator>
-
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). -
sign
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
node
-