|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Scaler
A Scaler is a Function1 object that can be used to scale a list of Numbers by a scale factor. If both the scale factor and the function argument are Integer or Long, a Long will be returned. Otherwise a Double will be returned.
| Field Summary | |
private java.lang.Number |
factor
|
| Constructor Summary | |
(package private) |
Scaler(java.lang.Number _factor)
Create a Scaler with a specific scale factor. |
| Method Summary | |
java.lang.Object |
apply(java.lang.Object x)
Apply this Scaler object to an Object x, which should be a Number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Number factor
| Constructor Detail |
Scaler(java.lang.Number _factor)
_factor - the factor to be used| Method Detail |
public java.lang.Object apply(java.lang.Object x)
apply in interface Function1x - the Object to which this function is applied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||