Class ArraysDSL.ArrayGeneratorBuilder<T>

  • Enclosing class:
    ArraysDSL

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

      • 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[]