Interface ExclusionPolicy

    • 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 Boolean shouldBeExcluded(Field field, RandomizerContext context) Given the current randomization context, should the field be excluded from being randomized?
      abstract Boolean shouldBeExcluded(Class<?> type, RandomizerContext context) Given the current randomization context, should the type be excluded from being randomized?
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • shouldBeExcluded

         abstract Boolean shouldBeExcluded(Field field, RandomizerContext context)

        Given the current randomization context, should the field be excluded from being randomized?

        Parameters:
        field - the field to check
        context - the current randomization context
        Returns:

        true if the field should be excluded, false otherwise

      • shouldBeExcluded

         abstract Boolean shouldBeExcluded(Class<?> type, RandomizerContext context)

        Given the current randomization context, should the type be excluded from being randomized?

        Parameters:
        type - the type to check
        context - the current randomization context
        Returns:

        true if the type should be excluded, false otherwise