Class MapFill

java.lang.Object
ru.objectsfill.types.collection_type.MapFill
All Implemented Interfaces:
CollectionTypeFill

public class MapFill extends Object implements CollectionTypeFill
class MapFill
  • Constructor Details

    • MapFill

      public MapFill()
  • Method Details

    • generate

      public Object generate(Field field, Fill fill)
      Generates a map collection based on the provided field and fill parameters. The generated collection will be in the form of a `Map` object.
      Specified by:
      generate in interface CollectionTypeFill
      Parameters:
      field - the field for which the map collection is generated
      fill - the `Fill` object containing the generation parameters
      Returns:
      the generated map collection
    • fillMap

      public <K, V> Map<K,V> fillMap(Field field, Fill fill)
      Fills a map with generated key-value pairs based on the provided field and fill parameters.
      Type Parameters:
      K - the type of the map's key
      V - the type of the map's value
      Parameters:
      field - the field for which the map is filled
      fill - the `Fill` object containing the generation parameters
      Returns:
      the filled map