Class BigDecimalSumAccumulateFunction
java.lang.Object
org.drools.core.base.accumulators.AbstractAccumulateFunction<BigDecimalSumAccumulateFunction.SumData>
org.drools.core.base.accumulators.BigDecimalSumAccumulateFunction
- All Implemented Interfaces:
Externalizable,Serializable,AccumulateFunction<BigDecimalSumAccumulateFunction.SumData>
public class BigDecimalSumAccumulateFunction
extends AbstractAccumulateFunction<BigDecimalSumAccumulateFunction.SumData>
An implementation of an accumulator capable of calculating sum of values
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(BigDecimalSumAccumulateFunction.SumData data, Object value) Class<?>voidvoidvoidreverse(BigDecimalSumAccumulateFunction.SumData data, Object value) booleanvoidMethods inherited from class org.drools.core.base.accumulators.AbstractAccumulateFunction
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.runtime.rule.AccumulateFunction
accumulateValue, initContext, tryReverse
-
Constructor Details
-
BigDecimalSumAccumulateFunction
public BigDecimalSumAccumulateFunction()
-
-
Method Details
-
readExternal
- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Throws:
IOException
-
createContext
-
init
-
accumulate
-
reverse
-
getResult
-
supportsReverse
public boolean supportsReverse() -
getResultType
-