public abstract class TypeArithmetic<E> extends Object
| Constructor and Description |
|---|
TypeArithmetic(Class<E> baseType) |
| Modifier and Type | Method and Description |
|---|---|
abstract E |
add(Object summand1,
Object summand2) |
abstract Object |
divide(Object quotient,
Object divisor) |
Class<E> |
getBaseType() |
abstract Object |
multiply(Object factor1,
Object factor2) |
abstract Object |
subtract(Object minuend,
Object subtrahend) |
public abstract E add(Object summand1, Object summand2) throws IllegalArgumentException, UnsupportedOperationException
public abstract Object subtract(Object minuend, Object subtrahend) throws IllegalArgumentException, UnsupportedOperationException
public abstract Object multiply(Object factor1, Object factor2) throws IllegalArgumentException, UnsupportedOperationException
public abstract Object divide(Object quotient, Object divisor) throws IllegalArgumentException, UnsupportedOperationException
Copyright © 2011–2014 Volker Bergmann. All rights reserved.