Class CycleRange

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.unary_int.CycleRange
All Implemented Interfaces:
IntUnaryOperator

public class CycleRange extends Object implements IntUnaryOperator
Yields a value within a specified range, which rolls over continuously.
  • Constructor Details

    • CycleRange

      public CycleRange(int maxValue)
      Sets the maximum value of the cycle range. The minimum is default to 0.
      Parameters:
      maxValue - The maximum value in the cycle to be added.
    • CycleRange

      public CycleRange(int minValue, int maxValue)
      Sets the minimum and maximum value of the cycle range.
      Parameters:
      minValue - minimum value of the cycle to be added.
      maxValue - maximum value of the cycle to be added.
  • Method Details