public class MaxGroupCalculator extends AbstractGroupCalculator<BigDecimal,DefaultCalcIntermResult<BigDecimal>,Object>
Constructor and Description |
---|
MaxGroupCalculator()
builds this group calculator with the default label
|
MaxGroupCalculator(String label)
builds this group calculator with a custom label
|
Modifier and Type | Method and Description |
---|---|
DefaultCalcIntermResult<BigDecimal> |
compute(DefaultCalcIntermResult<BigDecimal> intermResult,
Object newValue)
checks whether the new value is lower than the previous result
|
DefaultCalcIntermResult<BigDecimal> |
init()
returns a BigDecimal based on Double.MIN_VALUE
|
getLabel
public static final String LABEL
public MaxGroupCalculator()
public MaxGroupCalculator(String label)
label
- the labelpublic DefaultCalcIntermResult<BigDecimal> init()
public DefaultCalcIntermResult<BigDecimal> compute(DefaultCalcIntermResult<BigDecimal> intermResult, Object newValue)
intermResult
- the previous intermediate result ( it's the 10 in my example)newValue
- the current value (it's the "whatever text" in my example above)Copyright © 2006–2015. All rights reserved.