Interface MapGeneratorSpec<K,V>

Type Parameters:
K - key type
V - value type
All Superinterfaces:
GeneratorSpec<Map<K,V>>
All Known Implementing Classes:
ConcurrentHashMapGenerator, ConcurrentSkipListMapGenerator, MapGenerator, MapGeneratorSpecImpl, TreeMapGenerator

public interface MapGeneratorSpec<K,V> extends GeneratorSpec<Map<K,V>>
Generator spec for maps.
  • Method Details

    • size

      MapGeneratorSpec<K,V> size(int size)
      Size of map to generate.
      Parameters:
      size - of map
      Returns:
      spec builder
    • minSize

      MapGeneratorSpec<K,V> minSize(int size)
      Minimum size of map to generate.
      Parameters:
      size - minimum size (inclusive)
      Returns:
      spec builder
    • maxSize

      MapGeneratorSpec<K,V> maxSize(int size)
      Maximum size of map to generate.
      Parameters:
      size - maximum size (inclusive)
      Returns:
      spec builder
    • nullable

      MapGeneratorSpec<K,V> nullable()
      Indicates that null value can be generated for the map.
      Returns:
      spec builder
    • nullableKeys

      MapGeneratorSpec<K,V> nullableKeys()
      Indicates that null values can be generated for map keys.
      Returns:
      spec builder
    • nullableValues

      MapGeneratorSpec<K,V> nullableValues()
      Indicates that null values can be generated for map values.
      Returns:
      spec builder
    • subtype

      MapGeneratorSpec<K,V> subtype(Class<?> type)
      Specifies the type of map that should be generated.
      Parameters:
      type - of collection to generate
      Returns:
      spec builder
      Since:
      1.4.0