org.apache.commons.el

Class GreaterThanOperator


public class GreaterThanOperator
extends RelationalOperator

The implementation of the greater than operator
Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
Author:
Nathan Abramson - Art Technology Group

Field Summary

static GreaterThanOperator
SINGLETON

Constructor Summary

GreaterThanOperator()
Constructor

Method Summary

boolean
apply(BigDecimal pLeft, BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
boolean
apply(BigInteger pLeft, BigInteger pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
Object
apply(Object pLeft, Object pRight, Logger pLogger)
Applies the operator to the given value
boolean
apply(String pLeft, String pRight)
Applies the operator to the given String values
boolean
apply(double pLeft, double pRight)
Applies the operator to the given double values
boolean
apply(long pLeft, long pRight)
Applies the operator to the given long values
String
getOperatorSymbol()
Returns the symbol representing the operator

Methods inherited from class org.apache.commons.el.RelationalOperator

apply, apply, apply, apply, apply, apply, isEqual, isGreater, isLess

Methods inherited from class org.apache.commons.el.BinaryOperator

apply, getOperatorSymbol, shouldCoerceToBoolean, shouldEvaluate

Field Details

SINGLETON

public static final GreaterThanOperator SINGLETON

Constructor Details

GreaterThanOperator

public GreaterThanOperator()
Constructor

Method Details

apply

public boolean apply(BigDecimal pLeft,
                     BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
Overrides:
apply in interface RelationalOperator

apply

public boolean apply(BigInteger pLeft,
                     BigInteger pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal
Overrides:
apply in interface RelationalOperator

apply

public Object apply(Object pLeft,
                    Object pRight,
                    Logger pLogger)
            throws ELException
Applies the operator to the given value
Overrides:
apply in interface RelationalOperator

apply

public boolean apply(String pLeft,
                     String pRight)
Applies the operator to the given String values
Overrides:
apply in interface RelationalOperator

apply

public boolean apply(double pLeft,
                     double pRight)
Applies the operator to the given double values
Overrides:
apply in interface RelationalOperator

apply

public boolean apply(long pLeft,
                     long pRight)
Applies the operator to the given long values
Overrides:
apply in interface RelationalOperator

getOperatorSymbol

public String getOperatorSymbol()
Returns the symbol representing the operator
Overrides:
getOperatorSymbol in interface BinaryOperator

Copyright (c) 2001-2002 - Apache Software Foundation