net.sf.jga.fn.arithmetic
public class Divides<T extends Number> extends AbstractBinaryFunctor<T,T,T> implements Serializable
Copyright © 2003 David A. Hall
Nested Class Summary | |
---|---|
interface | Divides.Visitor
Interface for classes that may interpret a Divides functor. |
Constructor Summary | |
---|---|
Divides(Class c)
Builds Divides functor for the given class. |
Method Summary | |
---|---|
void | accept(Visitor v)
Calls the Visitor's visit(Divides) method, if it implements
the nested Visitor interface. |
T | fn(T x, T y)
Given numeric arguments x and y, returns x / y |
String | toString() |
Throws: IllegalArgumentException if the given class has no Arithmetic implementation registered with the ArithmeticFactory
visit(Divides)
method, if it implements
the nested Visitor interface.Returns: the quotient of two numeric arguments