public interface JRExtendedIncrementer extends JRIncrementer
The JRIncrementer has been
kept for backward compatibility.
The crosstab calculation engine requires extended incrementers. An incrementer implementing
JRIncrementer can be used for report
variables only.
| Modifier and Type | Method and Description |
|---|---|
Object |
combine(JRCalculable calculable,
JRCalculable calculableValue,
AbstractValueProvider valueProvider)
Combines two calculated values into one.
|
boolean |
ignoresNullValues()
Specifies whether
null values are ignored by this incrementer. |
Object |
increment(JRCalculable calculable,
Object expressionValue,
AbstractValueProvider valueProvider)
Increments a calculable object with a value.
|
Object |
initialValue()
Returns the initial value for this calculation.
|
incrementObject increment(JRCalculable calculable, Object expressionValue, AbstractValueProvider valueProvider) throws JRException
calculable - the calculableexpressionValue - the valuevalueProvider - value providerJRExceptionObject initialValue()
This method should return a neutral value for this calculation (e.g. 0 for sum, 1 for product, etc) or a default value if no neutral value exists.
Object combine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider) throws JRException
calculable - the first calculated valuecalculableValue - the second calculated valuevalueProvider - the value provider used for the helper variablesJRExceptionboolean ignoresNullValues()
null values are ignored by this incrementer.
If null values are ignored, the caller can chose to skip
incrementing a calculation with a null value.null values are ignored by this incrementerCopyright © 2017. All rights reserved.