org.apache.commons.el

Class PlusOperator

public class PlusOperator extends ArithmeticOperator

The implementation of the plus operator

Version: $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: luehe $

Author: Nathan Abramson - Art Technology Group

Field Summary
static PlusOperatorSINGLETON
Constructor Summary
PlusOperator()
Constructor
Method Summary
doubleapply(double pLeft, double pRight)
Applies the operator to the given double values, returning a double
longapply(long pLeft, long pRight)
Applies the operator to the given double values, returning a double
BigDecimalapply(BigDecimal pLeft, BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal.
BigIntegerapply(BigInteger pLeft, BigInteger pRight)
Applies the operator to the given BigInteger values, returning a BigInteger.
StringgetOperatorSymbol()
Returns the symbol representing the operator

Field Detail

SINGLETON

public static final PlusOperator SINGLETON

Constructor Detail

PlusOperator

public PlusOperator()
Constructor

Method Detail

apply

public double apply(double pLeft, double pRight)
Applies the operator to the given double values, returning a double

apply

public long apply(long pLeft, long pRight)
Applies the operator to the given double values, returning a double

apply

public BigDecimal apply(BigDecimal pLeft, BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal.

apply

public BigInteger apply(BigInteger pLeft, BigInteger pRight)
Applies the operator to the given BigInteger values, returning a BigInteger.

getOperatorSymbol

public String getOperatorSymbol()
Returns the symbol representing the operator
Copyright (c) 2001-2002 - Apache Software Foundation