Class Functions.IncIntFunction

java.lang.Object
org.multiverse.api.functions.IntFunction
org.multiverse.api.functions.Functions.IncIntFunction
All Implemented Interfaces:
Function<Integer>
Enclosing class:
Functions

private static class Functions.IncIntFunction extends IntFunction
  • Field Details

    • value

      private final int value
  • Constructor Details

    • IncIntFunction

      public IncIntFunction(int value)
  • Method Details

    • call

      public int call(int current)
      Description copied from class: IntFunction
      Calculates the new value based on the current value.
      Specified by:
      call in class IntFunction
      Parameters:
      current - the current value.
      Returns:
      the new value.
    • toString

      public String toString()
      Overrides:
      toString in class Object