net.sf.jga.fn.arithmetic
public class ArithmeticFactory extends Object
Copyright © 2003 David A. Hall
Method Summary | |
---|---|
static Arithmetic<Number> | getArithmetic(Class c)
Returns the Arithmetic implementation registered for the given class |
static IntegerArithmetic<Number> | getIntegralArithmetic(Class c)
Returns the IntegerArithmetic implementation registered for the given
class |
static void | register(Class c, Arithmetic<Number> math)
Registers the Arithmetic implementation for the given class |
static void | register(Class c, IntegerArithmetic<Number> math)
Registers the IntegerArithmetic implementation for the given class |
Returns: the Arithmetic implementation registered for the given class
Returns: the IntegerArithmetic implementation registered for the given class