|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CombinationFunction
Interface with a single method to combine two values. This class is used to use functions as parameters. This is the standard java closure hack.
Field Summary | |
---|---|
static CombinationFunction |
ADD
Adds two Numbers oldVal + newVal. |
static CombinationFunction |
MAX
The maximum of all combined values. |
static CombinationFunction |
MIN
The minimum of all combined values. |
static CombinationFunction |
MULTIPLY
Multiply two Numbers oldVal * newVal. |
Method Summary | |
---|---|
Number |
call(Number oldVal,
Number newVal)
A method with two parameters which should be combined in any way. |
Field Detail |
---|
static final CombinationFunction ADD
static final CombinationFunction MULTIPLY
static final CombinationFunction MAX
static final CombinationFunction MIN
Method Detail |
---|
Number call(Number oldVal, Number newVal)
oldVal
- The old value.newVal
- the new value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |