private static class Functions.IncIntFunction extends IntFunction
Modifier and Type | Field and Description |
---|---|
private int |
value |
Constructor and Description |
---|
IncIntFunction(int value) |
Modifier and Type | Method and Description |
---|---|
int |
call(int current)
Calculates the new value based on the current value.
|
java.lang.String |
toString() |
call
public int call(int current)
IntFunction
call
in class IntFunction
current
- the current value.public java.lang.String toString()
toString
in class java.lang.Object