openlist.util
Class DoubleMultiplier

java.lang.Object
  extended by openlist.util.DoubleMultiplier
All Implemented Interfaces:
Function2arg

public class DoubleMultiplier
extends java.lang.Object
implements Function2arg

A DoubleMultiplier multiplies two Number arguments to return a Double. specified in the constructor.


Constructor Summary
DoubleMultiplier()
           
 
Method Summary
 java.lang.Double apply(java.lang.Object arg1, java.lang.Object arg2)
          Multipliy the arguments together
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleMultiplier

public DoubleMultiplier()
Method Detail

apply

public java.lang.Double apply(java.lang.Object arg1,
                              java.lang.Object arg2)
Multipliy the arguments together

Specified by:
apply in interface Function2arg
Parameters:
arg1 - one of the factors
arg2 - the second factor
Returns:
the product of the two factors