| net.sf.jga.fn.arithmetic.Multiplies
Multiplies | public class Multiplies extends BinaryFunctor (Code) | | Returns the product of two numeric arguments.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | Multiplies(Class<T> c) Builds Multiplies functor for the given class. |
serialVersionUID | final static long serialVersionUID(Code) | | |
Multiplies | public Multiplies(Class<T> c)(Code) | | Builds Multiplies functor for the given class. The class argument must
be the same as the generic class argument (when generics are in use)
or else a ClassCastException will be thrown when the functor is used.
throws: IllegalArgumentException - if the given class has no Arithmeticimplementation registered with the ArithmeticFactory |
accept | public void accept(net.sf.jga.fn.Visitor v)(Code) | | Calls the Visitor's visit(Multiplies) method, if it
implements the nested Visitor interface.
|
fn | public T fn(T x, T y)(Code) | | Given numeric arguments x and y, returns x * y
the product of two numeric arguments |
getType | public Class<T> getType()(Code) | | Returns the type of operands this instance supports
|
|
|