Interface CollectionTypeFill

All Known Implementing Classes:
FillListCollection, FillSetCollection, MapFill

public interface CollectionTypeFill
Interface for generating a value of the corresponding collection type.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> Stream<T>
    Fills a collection stream based on the provided field and fill parameters.
    generate(Field field, Fill fill)
    Generates a collection based on the provided field and fill parameters.
  • Method Details

    • generate

      Object generate(Field field, Fill fill)
      Generates a collection based on the provided field and fill parameters.
      Parameters:
      field - the field for which the collection is generated
      fill - the `Fill` object containing the generation parameters
      Returns:
      the generated collection object
    • fillCollectionStream

      default <T> Stream<T> fillCollectionStream(Field field, Fill fill)
      Fills a collection stream based on the provided field and fill parameters.
      Type Parameters:
      T - the type of elements in the collection
      Parameters:
      field - the field for which the collection stream is filled
      fill - the `Fill` object containing the generation parameters
      Returns:
      a stream of filled collection elements