org.apache.commons.el

Class MinusOperator

public class MinusOperator extends ArithmeticOperator

The implementation of the minus operator

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

Author: Nathan Abramson - Art Technology Group

Field Summary
static MinusOperatorSINGLETON
Constructor Summary
MinusOperator()
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 MinusOperator SINGLETON

Constructor Detail

MinusOperator

public MinusOperator()
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