Interface RandomizerRegistry

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void init(KRandomParameters parameters) Initialize the registry.
      abstract Randomizer<out Object> getRandomizer(Field field) Retrieves a randomizer for the given field.
      abstract Randomizer<out Object> getRandomizer(Class<out Object> type) Retrieves a randomizer for a given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • init

         abstract void init(KRandomParameters parameters)

        Initialize the registry.

        Parameters:
        parameters - of the KRandom instance being configured
      • getRandomizer

         abstract Randomizer<out Object> getRandomizer(Field field)

        Retrieves a randomizer for the given field.

        Parameters:
        field - the field for which a randomizer was registered
        Returns:

        the randomizer registered for the given field

      • getRandomizer

         abstract Randomizer<out Object> getRandomizer(Class<out Object> type)

        Retrieves a randomizer for a given type.

        Parameters:
        type - the type for which a randomizer was registered
        Returns:

        the randomizer registered for the given type.