net.sourceforge.jeval.operator
Class LessThanOperator

java.lang.Object
  extended by net.sourceforge.jeval.operator.AbstractOperator
      extended by net.sourceforge.jeval.operator.LessThanOperator
All Implemented Interfaces:
Operator

public class LessThanOperator
extends AbstractOperator

The less than operator.


Constructor Summary
LessThanOperator()
          Default constructor.
 
Method Summary
 double evaluate(double leftOperand, double rightOperand)
          Evaluates two double operands.
 java.lang.String evaluate(java.lang.String leftOperand, java.lang.String rightOperand)
          Evaluates two string operands.
 
Methods inherited from class net.sourceforge.jeval.operator.AbstractOperator
equals, evaluate, getLength, getPrecedence, getSymbol, isUnary, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LessThanOperator

public LessThanOperator()
Default constructor.

Method Detail

evaluate

public double evaluate(double leftOperand,
                       double rightOperand)
Evaluates two double operands.

Specified by:
evaluate in interface Operator
Overrides:
evaluate in class AbstractOperator
Parameters:
leftOperand - The left operand being evaluated.
rightOperand - The right operand being evaluated.

evaluate

public java.lang.String evaluate(java.lang.String leftOperand,
                                 java.lang.String rightOperand)
Evaluates two string operands.

Specified by:
evaluate in interface Operator
Overrides:
evaluate in class AbstractOperator
Parameters:
leftOperand - The left operand being evaluated.
rightOperand - The right operand being evaluated.
Returns:
String The value of the evaluated operands.


Copyright (C) 2002-2007 Robert Breidecker.