Class ArraysDSL.ArrayGeneratorBuilder<T>

java.lang.Object
org.apache.solr.bench.generators.ArraysDSL.ArrayGeneratorBuilder<T>
Enclosing class:
ArraysDSL

public static class ArraysDSL.ArrayGeneratorBuilder<T> extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    org.quicktheories.core.Gen<T[]>
    withLength(int length)
    Generates arrays of specified type T of fixed length
    org.quicktheories.core.Gen<T[]>
    withLengthBetween(int minLength, int maxLength)
    Generates arrays of specified type T of length bounded inclusively between minimumSize and maximumSize
    org.quicktheories.core.Gen<T[]>
    withLengths(org.quicktheories.core.Gen<Integer> lengths)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • withLength

      public org.quicktheories.core.Gen<T[]> withLength(int length)
      Generates arrays of specified type T of fixed length
      Parameters:
      length - - fixed length
      Returns:
      a Source of type T[]
    • withLengths

      public org.quicktheories.core.Gen<T[]> withLengths(org.quicktheories.core.Gen<Integer> lengths)
    • withLengthBetween

      public org.quicktheories.core.Gen<T[]> withLengthBetween(int minLength, int maxLength)
      Generates arrays of specified type T of length bounded inclusively between minimumSize and maximumSize
      Parameters:
      minLength - - the inclusive minimum size of the array
      maxLength - - the inclusive maximum size of the array
      Returns:
      a Source of type T[]