com.klg.jclass.util.formulae
Class Count
java.lang.Object
|
+--com.klg.jclass.util.formulae.Operation
|
+--com.klg.jclass.util.formulae.Count
- All Implemented Interfaces:
- Cloneable, Expression
- public class Count
- extends Operation
This is a concrete implementation for the count operation.
Count determines the total number of elements across its operands.
Constructor Summary |
Count(com.klg.jclass.util.formulae.Expression operand)
Count the given operand (usually a list of expressions) |
Count(com.klg.jclass.util.formulae.Expression operand1,
com.klg.jclass.util.formulae.Expression operand2)
Count a pair of operands |
Method Summary |
com.klg.jclass.util.formulae.Result |
evaluate()
Return the result of counting the operands |
Methods inherited from class com.klg.jclass.util.formulae.Operation |
clone |
Count
public Count(com.klg.jclass.util.formulae.Expression operand)
- Count the given operand (usually a list of expressions)
Count
public Count(com.klg.jclass.util.formulae.Expression operand1,
com.klg.jclass.util.formulae.Expression operand2)
- Count a pair of operands
evaluate
public com.klg.jclass.util.formulae.Result evaluate()
- Return the result of counting the operands
- Specified by:
evaluate
in interface Expression
- Specified by:
evaluate
in class Operation
- Returns:
- The count of the number of elements in the operands