Class IncIntFunction

    • Constructor Detail

      • IncIntFunction

        public IncIntFunction()
        Creates an IncIntFunction that adds one.
      • IncIntFunction

        public IncIntFunction​(int inc)
        Creates an IncIntFunction with the specified
        Parameters:
        inc - the number to increment with.
    • Method Detail

      • 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.