Interface IntervalSpec<T>

Type Parameters:
T - the type of value that defines the interval
All Superinterfaces:
GeneratorSpec<IntervalSupplier<T>>, Supplier<IntervalSupplier<T>>, ValueSpec<IntervalSupplier<T>>

@ExperimentalApi public interface IntervalSpec<T> extends ValueSpec<IntervalSupplier<T>>
Spec for generating intervals of various types, such as numeric and temporal values.
Since:
5.0.0
  • Method Details

    • nextStart

      Specifies the function for calculating the start value of the next interval based on the end value of the current interval.
      Parameters:
      nextStartFn - function for calculating the starting value of the next interval
      Returns:
      API builder reference
      Since:
      5.0.0
    • nextEnd

      Specifies the function for calculating the end value of the interval based on the start value of the current interval.
      Parameters:
      nextEndFn - function for calculating the end value of the interval
      Returns:
      API builder reference
      Since:
      5.0.0
    • nullable

      IntervalSpec<T> nullable()
      Specifies that a null value can be generated
      Specified by:
      nullable in interface ValueSpec<T>
      Returns:
      spec builder reference
      Since:
      5.0.0