Record Class ExecutionData
java.lang.Object
java.lang.Record
com.sk89q.worldedit.internal.expression.ExecutionData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExecutionDataSpecial execution context for evaluating constant values. -
Constructor Summary
ConstructorsConstructorDescriptionExecutionData(SlotTable slots, Functions functions, Instant deadline) Creates an instance of aExecutionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionsrecord component.final inthashCode()Returns a hash code value for this object.slots()Returns the value of theslotsrecord component.final StringtoString()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 aExecutionDatarecord class.- Parameters:
slots- the value for theslotsrecord componentfunctions- the value for thefunctionsrecord componentdeadline- the value for thedeadlinerecord component
-
-
Method Details
-
slots
Returns the value of theslotsrecord component.- Returns:
- the value of the
slotsrecord component
-
functions
Returns the value of thefunctionsrecord component.- Returns:
- the value of the
functionsrecord 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 thedeadlinerecord component.- Returns:
- the value of the
deadlinerecord component
-