Package org.multiverse.api.functions
Class Functions.IncIntFunction
- java.lang.Object
-
- org.multiverse.api.functions.IntFunction
-
- org.multiverse.api.functions.Functions.IncIntFunction
-
- All Implemented Interfaces:
Function<java.lang.Integer>
- Enclosing class:
- Functions
private static class Functions.IncIntFunction extends IntFunction
-
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Constructor Description IncIntFunction(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcall(int current)Calculates the new value based on the current value.java.lang.StringtoString()-
Methods inherited from class org.multiverse.api.functions.IntFunction
call
-
-
-
-
Method Detail
-
call
public int call(int current)
Description copied from class:IntFunctionCalculates the new value based on the current value.- Specified by:
callin classIntFunction- Parameters:
current- the current value.- Returns:
- the new value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-