|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jga.fn.arithmetic.ArithmeticFactory
public class ArithmeticFactory
Builds and distributes implementations of the Arithmetic and IntegerArithmetic interfaces that are available for supported Number classes.
Copyright © 2003-2005 David A. Hall
Constructor Summary | |
---|---|
ArithmeticFactory()
|
Method Summary | ||
---|---|---|
static
|
getArithmetic(java.lang.Class<T> c)
Returns the Arithmetic implementation registered for the given class |
|
static
|
getIntegralArithmetic(java.lang.Class<T> c)
Returns the IntegerArithmetic implementation registered for the given class |
|
static
|
register(java.lang.Class<T> c,
Arithmetic<T> math)
Registers the Arithmetic implementation for the given class |
|
static
|
register(java.lang.Class<T> c,
IntegerArithmetic<T> math)
Registers the IntegerArithmetic implementation for the given class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArithmeticFactory()
Method Detail |
---|
public static <T extends java.lang.Number> void register(java.lang.Class<T> c, Arithmetic<T> math)
public static <T extends java.lang.Number> void register(java.lang.Class<T> c, IntegerArithmetic<T> math)
public static <T extends java.lang.Number> Arithmetic<T> getArithmetic(java.lang.Class<T> c)
public static <T extends java.lang.Number> IntegerArithmetic<T> getIntegralArithmetic(java.lang.Class<T> c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |