Class MapGenerator<K,​V>

    • Field Detail

      • minSize

        protected int minSize
      • maxSize

        protected int maxSize
      • nullable

        protected boolean nullable
      • nullableKeys

        protected boolean nullableKeys
      • nullableValues

        protected boolean nullableValues
      • type

        protected Class<?> type
    • Method Detail

      • generate

        public Map<K,​V> generate​(Random random)
        Description copied from interface: Generator
        Returns a generated value.

        If the generated value is random, it needs to be generated using the given Random instance. This ensures the data is generated with the same seed value and allows random data to be reproduced by specifying the seed value.

        Specified by:
        generate in interface Generator<K>
        Parameters:
        random - provider for random values
        Returns:
        generated value
      • getHints

        public GeneratedHints getHints()
        Description copied from interface: Generator
        Returns hints, including collection sizes and whether values are nullable.
        Specified by:
        getHints in interface Generator<K>
        Returns:
        generated hints