org.apache.commons.el

Class MultiplyOperator

public class MultiplyOperator extends ArithmeticOperator

The implementation of the multiply operator

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

Author: Nathan Abramson - Art Technology Group

Field Summary
static MultiplyOperatorSINGLETON
Constructor Summary
MultiplyOperator()
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 MultiplyOperator SINGLETON

Constructor Detail

MultiplyOperator

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