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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionToBooleanExpressionholding the boolean valuetrueif the double value is anything but 0, else false.ToStringExpressionholding the double value as String value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.andre601.expressionparser.templates.ExpressionTemplate
returnDoubleExpression
-
Constructor Details
-
AbstractDoubleExpressionTemplate
public AbstractDoubleExpressionTemplate()
-
-
Method Details
-
returnBooleanExpression
ToBooleanExpressionholding the boolean valuetrueif the double value is anything but 0, else false.- Specified by:
returnBooleanExpressionin interfaceExpressionTemplate- Returns:
- ToBooleanExpression holding the boolean value
trueif the double value is anything but 0, else false.
-
returnStringExpression
ToStringExpressionholding the double value as String value.- Specified by:
returnStringExpressionin interfaceExpressionTemplate- Returns:
- ToStringExpression holding the double value as String value.
-