Class AbstractDoubleExpressionTemplate
java.lang.Object
ch.andre601.expressionparser.templates.abstracted.AbstractDoubleExpressionTemplate
- All Implemented Interfaces:
ExpressionTemplate
Abstract class implementing
This class converts the provided double value in proper
ExpressionTemplate
.
This class converts the provided double value in proper
ToStringExpression
and ToBooleanExpression
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionToBooleanExpression
holding the boolean valuetrue
if the double value is anything but 0, else false.ToStringExpression
holding the double value as String value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.andre601.expressionparser.templates.ExpressionTemplate
returnDoubleExpression
-
Constructor Details
-
AbstractDoubleExpressionTemplate
public AbstractDoubleExpressionTemplate()
-
-
Method Details
-
returnBooleanExpression
ToBooleanExpression
holding the boolean valuetrue
if the double value is anything but 0, else false.- Specified by:
returnBooleanExpression
in interfaceExpressionTemplate
- Returns:
- ToBooleanExpression holding the boolean value
true
if the double value is anything but 0, else false.
-
returnStringExpression
ToStringExpression
holding the double value as String value.- Specified by:
returnStringExpression
in interfaceExpressionTemplate
- Returns:
- ToStringExpression holding the double value as String value.
-