org.ujac.util.table
Class SumFunctionExecutor
java.lang.Object
org.ujac.util.table.SumFunctionExecutor
- All Implemented Interfaces:
- Serializable, FunctionExecutor
public class SumFunctionExecutor
- extends Object
- implements FunctionExecutor
Name: SumReportFunctionExecutor
Description: A function executor adding values.
- Author:
- lauerc
- See Also:
- Serialized Form
Method Summary |
double |
execute(double currentValue,
Object operand)
Adds the numeric value of the given object to the current value. |
boolean |
integersGuaranteed()
Tells whether the function executor serves integers under guarantee (f.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SumFunctionExecutor
public SumFunctionExecutor()
execute
public double execute(double currentValue,
Object operand)
throws TypeMismatchException
- Adds the numeric value of the given object to the current value.
- Specified by:
execute
in interface FunctionExecutor
- Parameters:
currentValue
- The current value to apply the operand to.operand
- The operand to apply.
- Returns:
- The calculated result.
- Throws:
TypeMismatchException
- In case the given operand type was invalid.
integersGuaranteed
public boolean integersGuaranteed()
- Tells whether the function executor serves integers under guarantee (f.e. count function).
- Specified by:
integersGuaranteed
in interface FunctionExecutor
- Returns:
- always returns false.
Copyright © 2003-2004 UJAC.org. All Rights Reserved.