org.ujac.util.table
Class CountFunctionExecutor

java.lang.Object
  extended by 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

Constructor Summary
CountFunctionExecutor()
           
 
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
 

Constructor Detail

CountFunctionExecutor

public CountFunctionExecutor()
Method Detail

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.