Interface SequenceSupplier<T extends Number>

Type Parameters:
T - The type of number
All Superinterfaces:
StatefulSupplier<T>, Supplier<T>
All Known Implementing Classes:
Int4SequenceSupplier, Int8SequenceSupplier

public interface SequenceSupplier<T extends Number> extends StatefulSupplier<T>
Supplies consequent number with customizable start and steps.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
    Gets the next value in sequence.
    Gets the next value in sequence(without stepping).
    Gets the next value in sequence.
  • Method Details

    • get

      default T get()
      Gets the next value in sequence.
      Specified by:
      get in interface Supplier<T extends Number>
      Returns:
      The next value
      See Also:
    • nextValue

      T nextValue()
      Gets the next value in sequence.
      Returns:
      The next value
    • lastValue

      T lastValue()
      Gets the next value in sequence(without stepping).
      Returns:
      The current value