|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Multiplier
A Multiplier is a Function2 object that can be used to multiply a pair of Numbers. If both Numbers are Long or Integer, it returns a Long. Otherwise it returns a Double.
| Constructor Summary | |
(package private) |
Multiplier()
Create a Multiplier with a specific scale factor. |
| Method Summary | |
java.lang.Object |
apply(java.lang.Object x,
java.lang.Object y)
Apply this Multiplier object to two Objects, both of which should be Numbers. |
static java.lang.Number |
multiply(java.lang.Object x,
java.lang.Object y)
Multiply two Objects, both of which should be Numbers. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
Multiplier()
| Method Detail |
public java.lang.Object apply(java.lang.Object x,
java.lang.Object y)
apply in interface Function2x - the first argument of this functiony - the second argument of this function
public static java.lang.Number multiply(java.lang.Object x,
java.lang.Object y)
x - the first argument of this functiony - the second argument of this function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||