org.apache.commons.el

Class EqualityOperator

Known Direct Subclasses:
EqualsOperator, NotEqualsOperator

public abstract class EqualityOperator
extends BinaryOperator

This is the superclass for all equality operators (==, !=)
Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $
Author:
Nathan Abramson - Art Technology Group

Method Summary

Object
apply(Object pLeft, Object pRight, Logger pLogger)
Applies the operator to the given value
abstract boolean
apply(boolean pAreEqual, Logger pLogger)
Applies the operator given the fact that the two elements are equal.

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

apply, getOperatorSymbol, shouldCoerceToBoolean, shouldEvaluate

Method Details

apply

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

apply

public abstract boolean apply(boolean pAreEqual,
                              Logger pLogger)
Applies the operator given the fact that the two elements are equal.

Copyright (c) 2001-2002 - Apache Software Foundation