Record Class ExecutionData
java.lang.Object
java.lang.Record
com.sk89q.worldedit.internal.expression.ExecutionData
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ExecutionData
Special execution context for evaluating constant values. -
Constructor Summary
ConstructorDescriptionExecutionData
(SlotTable slots, Functions functions, Instant deadline) Creates an instance of aExecutionData
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deadline()
Returns the value of thedeadline
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefunctions
record component.final int
hashCode()
Returns a hash code value for this object.slots()
Returns the value of theslots
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CONSTANT_EVALUATOR
Special execution context for evaluating constant values. As long as no variables are used, it can be considered constant.
-
-
Constructor Details
-
ExecutionData
Creates an instance of aExecutionData
record class.- Parameters:
slots
- the value for theslots
record componentfunctions
- the value for thefunctions
record componentdeadline
- the value for thedeadline
record component
-
-
Method Details
-
slots
Returns the value of theslots
record component.- Returns:
- the value of the
slots
record component
-
functions
Returns the value of thefunctions
record component.- Returns:
- the value of the
functions
record component
-
checkDeadline
public void checkDeadline() -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
deadline
Returns the value of thedeadline
record component.- Returns:
- the value of the
deadline
record component
-