public class MinGroupCalculator extends AbstractGroupCalculator<BigDecimal,DefaultCalcIntermResult<BigDecimal>,Object>
Constructor and Description |
---|
MinGroupCalculator()
builds this group calculator with the default label
|
MinGroupCalculator(String label)
builds this group calculator with a custom label
|
Modifier and Type | Method and Description |
---|---|
DefaultCalcIntermResult<BigDecimal> |
compute(DefaultCalcIntermResult<BigDecimal> intermResult,
Object newValue)
compares the previous result with the new value and returns the minimum
|
DefaultCalcIntermResult<BigDecimal> |
init()
returns a BigDecimal having Double.MAX_VALUE value
|
getLabel
public static final String LABEL
public MinGroupCalculator()
public MinGroupCalculator(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.