Class ArraysDSL


  • public class ArraysDSL
    extends Object
    • Constructor Detail

      • ArraysDSL

        public ArraysDSL()
    • Method Detail

      • ofIntegers

        public ArraysDSL.ArrayGeneratorBuilder<Integer> ofIntegers​(org.quicktheories.core.Gen<Integer> source)
        Creates an ArrayGeneratorBuilder of Integers that can be used to create an array Source
        Parameters:
        source - a Source of type Integer
        Returns:
        an ArrayGeneratorBuilder of type Integer
      • ofCharacters

        public ArraysDSL.ArrayGeneratorBuilder<Character> ofCharacters​(org.quicktheories.core.Gen<Character> source)
        Creates an ArrayGeneratorBuilder of Characters that can be used to create an array Source
        Parameters:
        source - a Source of type Character
        Returns:
        an ArrayGeneratorBuilder of type Character
      • ofStrings

        public ArraysDSL.ArrayGeneratorBuilder<String> ofStrings​(org.quicktheories.core.Gen<String> source)
        Creates an ArrayGeneratorBuilder of Strings that can be used to create an array Source
        Parameters:
        source - a Source of type String
        Returns:
        an ArrayGeneratorBuilder of type String
      • ofClass

        public <T> ArraysDSL.ArrayGeneratorBuilder<T> ofClass​(org.quicktheories.core.Gen<T> source,
                                                              Class<T> c)
        Creates an ArrayGeneratorBuilder of the given class that can be used to create an array Source
        Type Parameters:
        T - type of value to generate
        Parameters:
        source - a Source of type T
        c - a Class of type T
        Returns:
        an ArrayGeneratorBuilder of type T