org.ujac.util.table
Class CountFunctionExecutor
java.lang.Object
org.ujac.util.table.CountFunctionExecutor
- All Implemented Interfaces:
- Serializable, FunctionExecutor
public class CountFunctionExecutor
- extends Object
- implements FunctionExecutor
Name: CountFunctionExecutor
Description: A function executor counting values.
- Author:
- lauerc
- See Also:
- Serialized Form
Method Summary |
double |
execute(double currentValue,
Object operand)
Increases the current value by one. |
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 |
CountFunctionExecutor
public CountFunctionExecutor()
execute
public double execute(double currentValue,
Object operand)
- Increases the current value by one.
- 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.
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 true.
Copyright © 2003-2004 UJAC.org. All Rights Reserved.