Class ListsDSL.TypedListGeneratorBuilder<T>

  • Enclosing class:
    ListsDSL

    public static class ListsDSL.TypedListGeneratorBuilder<T>
    extends Object
    TypedListGeneratorBuilder enables the creation of Sources for Lists of fixed and bounded size, where the Collector is fixed.
    • Method Detail

      • ofSize

        public org.quicktheories.core.Gen<List<T>> ofSize​(int size)
        Generates a List of objects, where the size of the List is fixed
        Parameters:
        size - size of lists to generate
        Returns:
        a Source of Lists of type T
      • ofSizeBetween

        public org.quicktheories.core.Gen<List<T>> ofSizeBetween​(int minimumSize,
                                                                 int maximumSize)
        Generates a List of objects, where the size of the List is bounded by minimumSize and maximumSize
        Parameters:
        minimumSize - - inclusive minimum size of List
        maximumSize - - inclusive maximum size of List
        Returns:
        a Source of Lists of type T