JClass DesktopViews 6.3.0 API
Documentation

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.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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

Copyright © 2004 Quest Software Inc..
All rights reserved.