Record Class Paren
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final String
Fields inherited from interface Expr
PUNCTUATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptione()
Returns the value of thee
record component.final boolean
Indicates whether some other object is "equal to" this one.eval()
Evaluate a given Expr.final int
hashCode()
Returns a hash code value for this object.static Paren
“@Override”Expr.parse(java.lang.String)
toString()
Returns a string representation of this record class.
-
Field Details
-
START_TOKEN
- See Also:
-
STOP_TOKEN
- See Also:
-
-
Constructor Details
-
Paren
Creates an instance of aParen
record class.- Parameters:
e
- the value for thee
record 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. -
parse
“@Override”Expr.parse(java.lang.String)
-
eval
Description copied from interface:Expr
Evaluate a given Expr. -
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)
. -
e
Returns the value of thee
record component.- Returns:
- the value of the
e
record component
-