Class Int4SequenceSupplier

java.lang.Object
guru.mikelue.foxglove.functional.Int4SequenceSupplier
All Implemented Interfaces:
SequenceSupplier<Integer>, StatefulSupplier<Integer>, IntSupplier, Supplier<Integer>

public class Int4SequenceSupplier extends Object implements IntSupplier, SequenceSupplier<Integer>
Provides consequent number with customizable start and steps. The type is Integer(4 bytes) based.
See Also:
  • Constructor Details

    • Int4SequenceSupplier

      public Int4SequenceSupplier()
      Constructs the supplier with start value as 1 and step as 1.
      See Also:
    • Int4SequenceSupplier

      public Int4SequenceSupplier(int startValue)
      Constructs the supplier with start value as 0 and step as 1.
      Parameters:
      startValue - The start value
      See Also:
    • Int4SequenceSupplier

      public Int4SequenceSupplier(int startValue, int stepValue)
      Constructs the supplier with customizable start value and step.
      Parameters:
      startValue - The start value
      stepValue - The step value
      See Also:
  • Method Details