Record Class IfZero
java.lang.Object
java.lang.Record
IfZero
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
(package private) static final String
(package private) static final double
(package private) static final String
Fields inherited from interface Expr
PUNCTUATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelseAns()
Returns the value of theelseAns
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 IfZero
“@Override”Expr.parse(java.lang.String)
test()
Returns the value of thetest
record component.thenAns()
Returns the value of thethenAns
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
START_TOKEN
- See Also:
-
CONT_TOKEN1
- See Also:
-
CONT_TOKEN3
- See Also:
-
EPSILON
static final double EPSILON- See Also:
-
-
Constructor Details
-
IfZero
-
-
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)
. -
test
Returns the value of thetest
record component.- Returns:
- the value of the
test
record component
-
thenAns
Returns the value of thethenAns
record component.- Returns:
- the value of the
thenAns
record component
-
elseAns
Returns the value of theelseAns
record component.- Returns:
- the value of the
elseAns
record component
-