1 55 56 package org.apache.commons.el; 57 58 import javax.servlet.jsp.el.ELException ; 59 import java.math.BigDecimal ; 60 import java.math.BigInteger ; 61 62 69 70 public abstract class ArithmeticOperator 71 extends BinaryOperator 72 { 73 78 public Object apply (Object pLeft, 79 Object pRight, 80 Logger pLogger) 81 throws ELException 82 { 83 return Coercions.applyArithmeticOperator (pLeft, pRight, this, pLogger); 84 } 85 86 91 public abstract double apply (double pLeft, double pRight); 92 93 98 public abstract long apply (long pLeft, long pRight); 99 100 102 107 public abstract BigDecimal apply(BigDecimal pLeft, BigDecimal pRight); 108 109 111 116 public abstract BigInteger apply(BigInteger pLeft, BigInteger pRight); 117 118 } 120 | Popular Tags |