Record Class ExpressionNode.Ref
java.lang.Object
java.lang.Record
org.cyclops.integrateddynamics.api.evaluate.expression.tree.ExpressionNode.Ref
- Record Components:
variableId- The variable id.
- All Implemented Interfaces:
ExpressionNode
- Enclosing interface:
ExpressionNode
A reference to another variable card in the network, by variable id.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExpressionNode
ExpressionNode.Const, ExpressionNode.Empty, ExpressionNode.Operator, ExpressionNode.Param, ExpressionNode.Ref -
Field Summary
Fields inherited from interface ExpressionNode
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thevariableIdrecord component.
-
Constructor Details
-
Ref
public Ref(int variableId) Creates an instance of aRefrecord class.- Parameters:
variableId- the value for thevariableIdrecord 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 with thecomparemethod from their corresponding wrapper classes. -
variableId
public int variableId()Returns the value of thevariableIdrecord component.- Returns:
- the value of the
variableIdrecord component
-