public final class IncIntFunction extends IntFunction
IntFunction that increased the value with the supplied amount.| Modifier and Type | Field and Description |
|---|---|
static IncIntFunction |
INSTANCE |
| Constructor and Description |
|---|
IncIntFunction()
Creates an IncIntFunction that adds one.
|
IncIntFunction(int inc)
Creates an IncIntFunction with the specified
|
| Modifier and Type | Method and Description |
|---|---|
int |
call(int current)
Calculates the new value based on the current value.
|
java.lang.String |
toString() |
callpublic static final IncIntFunction INSTANCE
public IncIntFunction()
public IncIntFunction(int inc)
inc - the number to increment with.public int call(int current)
IntFunctioncall in class IntFunctioncurrent - the current value.public java.lang.String toString()
toString in class java.lang.Object