Package org.multiverse.api.functions
Class IntFunction
- java.lang.Object
-
- org.multiverse.api.functions.IntFunction
-
- All Implemented Interfaces:
Function<java.lang.Integer>
- Direct Known Subclasses:
IncIntFunction
public abstract class IntFunction extends java.lang.Object implements Function<java.lang.Integer>
AFunction
for primitives that accepts an argument of type int and returns a new value of the same type.The reason why
IntFunction
is an abstract class instead of an ordinary interface, is that this class doesn't cause any unwanted boxing of primitives version of the call method is used instead of the one that accepts and returns a/an Integer).This class is generated.
-
-
Constructor Summary
Constructors Constructor Description IntFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
call(int current)
Calculates the new value based on the current value.java.lang.Integer
call(java.lang.Integer arg)
Evaluates the function.
-