Class ConcurrentSkipListMapGenerator<K,V>

java.lang.Object
org.instancio.generator.AbstractGenerator<Map<K,V>>
org.instancio.generator.util.MapGenerator<K,V>
org.instancio.generator.util.concurrent.ConcurrentSkipListMapGenerator<K,V>
All Implemented Interfaces:
Generator<Map<K,V>>, GeneratorSpec<Map<K,V>>, MapGeneratorSpec<K,V>

public class ConcurrentSkipListMapGenerator<K,V> extends MapGenerator<K,V>
  • Constructor Details

    • ConcurrentSkipListMapGenerator

      public ConcurrentSkipListMapGenerator(GeneratorContext context)
  • Method Details

    • 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>
      Overrides:
      generate in class MapGenerator<K,V>
      Parameters:
      random - provider for random values
      Returns:
      generated value