Interface EnumGeneratorSpec<E extends Enum<E>>

Type Parameters:
E - enum type
All Superinterfaces:
GeneratorSpec<E>, NullableGeneratorSpec<E>
All Known Subinterfaces:
EnumAsGeneratorSpec<E>, EnumSpec<E>

public interface EnumGeneratorSpec<E extends Enum<E>> extends NullableGeneratorSpec<E>
Generator spec for Enums.
Since:
1.6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    excluding(E... values)
    Generate an enum while excluding the specified values.
    Indicates that null value can be generated.
  • Method Details

    • excluding

      EnumGeneratorSpec<E> excluding(E... values)
      Generate an enum while excluding the specified values. The argument can be an empty array, but not null.
      Parameters:
      values - to exclude
      Returns:
      spec builder
      Since:
      1.6.0
    • nullable

      EnumGeneratorSpec<E> nullable()
      Indicates that null value can be generated.
      Specified by:
      nullable in interface NullableGeneratorSpec<E extends Enum<E>>
      Returns:
      spec builder
      Since:
      1.6.0