net.sf.dynamicreports.report.builder.condition
Class AbstractBetweenValueExpression<T extends Number>

java.lang.Object
  extended by net.sf.dynamicreports.report.base.expression.AbstractSimpleExpression<Boolean>
      extended by net.sf.dynamicreports.report.builder.condition.AbstractBetweenValueExpression<T>
All Implemented Interfaces:
Serializable, DRIValue<Boolean>, DRIExpression<Boolean>, DRISimpleExpression<Boolean>
Direct Known Subclasses:
BetweenValueExpression, NotBetweenValueExpression

public abstract class AbstractBetweenValueExpression<T extends Number>
extends AbstractSimpleExpression<Boolean>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)
See Also:
Serialized Form

Constructor Summary
AbstractBetweenValueExpression(DRIValue<T> value, Number min, Number max)
           
 
Method Summary
protected abstract  Boolean compare(Number actualValue, Number min, Number max)
           
 Boolean evaluate(ReportParameters reportParameters)
          Evaluates the expression.
 Class<Boolean> getValueClass()
           
 
Methods inherited from class net.sf.dynamicreports.report.base.expression.AbstractSimpleExpression
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBetweenValueExpression

public AbstractBetweenValueExpression(DRIValue<T> value,
                                      Number min,
                                      Number max)
Method Detail

evaluate

public Boolean evaluate(ReportParameters reportParameters)
Description copied from interface: DRISimpleExpression
Evaluates the expression.

Parameters:
reportParameters - access to report fields, variables, parameters, expressions, and other report values
Returns:
the result of the expression evaluation

getValueClass

public Class<Boolean> getValueClass()
Specified by:
getValueClass in interface DRIExpression<Boolean>
Overrides:
getValueClass in class AbstractSimpleExpression<Boolean>

compare

protected abstract Boolean compare(Number actualValue,
                                   Number min,
                                   Number max)


Copyright © 2010-2014. All Rights Reserved.