Class Functions.IncLongFunction

java.lang.Object
org.multiverse.api.functions.LongFunction
org.multiverse.api.functions.Functions.IncLongFunction
All Implemented Interfaces:
Function<Long>
Enclosing class:
Functions

private static class Functions.IncLongFunction extends LongFunction
  • Field Details

    • value

      private final long value
  • Constructor Details

    • IncLongFunction

      public IncLongFunction(long value)
  • Method Details

    • call

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

      public String toString()
      Overrides:
      toString in class Object