Class Functions.IncLongFunction

  • All Implemented Interfaces:
    Function<java.lang.Long>
    Enclosing class:
    Functions

    private static class Functions.IncLongFunction
    extends LongFunction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long value  
    • Constructor Summary

      Constructors 
      Constructor Description
      IncLongFunction​(long value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long call​(long current)
      Calculates the new value based on the current value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        private final long value
    • Constructor Detail

      • IncLongFunction

        public IncLongFunction​(long value)
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object