csheets.core.formula.lang
Class NotEqual

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

public class NotEqual
extends RelationalOperator

A relational not-equal operator.

Author:
Einar Pehrson
See Also:
Serialized Form

Constructor Summary
NotEqual()
          Creates a new relational not-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

NotEqual

public NotEqual()
Creates a new relational not-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