csheets.core.formula.lang
Class GreaterThanOrEqual

java.lang.Object
  extended by csheets.core.formula.lang.RelationalOperator
      extended by csheets.core.formula.lang.GreaterThanOrEqual
All Implemented Interfaces:
BinaryOperator, Operator, Serializable

public class GreaterThanOrEqual
extends RelationalOperator

A relational greater-than-oe-equal operator.

Author:
Einar Pehrson
See Also:
Serialized Form

Constructor Summary
GreaterThanOrEqual()
          Creates a new relational greater-than-oe-equal operator.
 
Method Summary
<T> boolean
compare(Comparable<T> left, T right)
          Applies the operator to the given operands and returns a boolean value.
 String getIdentifier()
          Returns the operator's string identirifer.
 Value.Type getOperandValueType()
          Returns the type of value that the operator's operands can have.
 String toString()
           
 
Methods inherited from class csheets.core.formula.lang.RelationalOperator
applyTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GreaterThanOrEqual

public GreaterThanOrEqual()
Creates a new relational greater-than-oe-equal operator.

Method Detail

compare

public <T> boolean compare(Comparable<T> left,
                           T right)
Description copied from class: RelationalOperator
Applies the operator to the given operands and returns a boolean value.

Specified by:
compare in class RelationalOperator
Parameters:
left - the value of the left operand
right - the value of the right operand
Returns:
the result of the comparison

getIdentifier

public String getIdentifier()
Description copied from interface: Operator
Returns the operator's string identirifer.

Returns:
a string representation of the operator.

getOperandValueType

public Value.Type getOperandValueType()
Description copied from interface: Operator
Returns the type of value that the operator's operands can have.

Specified by:
getOperandValueType in interface Operator
Overrides:
getOperandValueType in class RelationalOperator
Returns:
the type of value that the operator's operands can have

toString

public String toString()
Overrides:
toString in class RelationalOperator