Class EnumCustomGenerator

All Implemented Interfaces:
Generator, TypedGenerator<EnumCustomGenerator.Values>

public class EnumCustomGenerator extends AbstractTypedGenerator<EnumCustomGenerator.Values>
Custom generator for an enumeration type that prevents generation of an undesired value.

Registered through META-INF/services/dev.orne.test.rnd.Generator SPI.

Generator has no Priority annotation, so gets the default priority (0), which is greater than built in enumeration values generator (-2000) and therefore takes precedence for generation of the supported types.

Since:
0.1
Version:
1.0, 2022-12
Author:
(w) Iker Hernaez
See Also:
  • Field Details

  • Constructor Details

    • EnumCustomGenerator

      public EnumCustomGenerator()
      Creates a new instance.
  • Method Details