|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlist.util.IntegerScaler
public class IntegerScaler
A Scaler (not scaler) multiplies its argument by a fixed value, as specified in the constructor.
| Field Summary | |
|---|---|
(package private) int |
factor
|
| Constructor Summary | |
|---|---|
IntegerScaler(int factor)
Create a Scaler to multiply Integers by a fixed factor. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
apply(java.lang.Object arg)
Apply this Scaler to an argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int factor
| Constructor Detail |
|---|
public IntegerScaler(int factor)
factor - the int by which the argument of the function is multiplied| Method Detail |
|---|
public java.lang.Integer apply(java.lang.Object arg)
apply in interface Function1argarg - the value to be scaled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||