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 MinusOperator
SINGLETON

Constructor Summary

MinusOperator()
Constructor

Method Summary

BigDecimal
apply(BigDecimal pLeft, BigDecimal pRight)
Applies the operator to the given BigDecimal values, returning a BigDecimal.
BigInteger
apply(BigInteger pLeft, BigInteger pRight)
Applies the operator to the given BigInteger values, returning a BigInteger.
double
apply(double pLeft, double pRight)
Applies the operator to the given double values, returning a double
long
apply(long pLeft, long pRight)
Applies the operator to the given double values, returning a double
String
getOperatorSymbol()
Returns the symbol representing the operator

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

apply, apply, apply, apply, apply

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

apply, getOperatorSymbol, shouldCoerceToBoolean, shouldEvaluate

Field Details

SINGLETON

public static final MinusOperator SINGLETON

Constructor Details

MinusOperator

public MinusOperator()
Constructor

Method Details

apply

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

apply

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

apply

public double apply(double pLeft,
                    double pRight)
Applies the operator to the given double values, returning a double
Overrides:
apply in interface ArithmeticOperator

apply

public long apply(long pLeft,
                  long pRight)
Applies the operator to the given double values, returning a double
Overrides:
apply in interface ArithmeticOperator

getOperatorSymbol

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

Copyright (c) 2001-2002 - Apache Software Foundation