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.
|
String |
toString() |
call
public static final IncIntFunction INSTANCE
public IncIntFunction()
public IncIntFunction(int inc)
inc
- the number to increment with.public int call(int current)
IntFunction
call
in class IntFunction
current
- the current value.Copyright © 2020. All rights reserved.