public class LastGroupCalculator<T> extends AbstractGroupCalculator<T,DefaultCalcIntermResult<T>,T>
compute(DefaultCalcIntermResult, Object)
methodConstructor and Description |
---|
LastGroupCalculator()
builds this group calculator with the default label
|
LastGroupCalculator(String label)
builds this group calculator with the custom label
|
Modifier and Type | Method and Description |
---|---|
DefaultCalcIntermResult<T> |
compute(DefaultCalcIntermResult<T> intermResult,
T newValue)
stores the last value passes to this method as @param newValue
|
DefaultCalcIntermResult<T> |
init()
returns an empty intermediate calculator result ( empty means that it contains a null value)
|
getLabel
public static final String LABEL
public LastGroupCalculator()
public LastGroupCalculator(String label)
label
- the labelpublic DefaultCalcIntermResult<T> init()
public DefaultCalcIntermResult<T> compute(DefaultCalcIntermResult<T> intermResult, T newValue)
intermResult
- the previous resultnewValue
- the new valueCopyright © 2006–2015. All rights reserved.