Package org.instancio.generator.specs
Interface EnumGeneratorSpec<E extends Enum<E>>
- Type Parameters:
E
- enum type
- All Superinterfaces:
GeneratorSpec<E>
- All Known Subinterfaces:
EnumAsGeneratorSpec<E>
,EnumSpec<E>
- All Known Implementing Classes:
EnumGenerator
Generator spec for
Enums
.- Since:
- 1.6.0
-
Method Summary
Modifier and TypeMethodDescriptionGenerate an enum while excluding the specified values.nullable()
Indicates thatnull
value can be generated.
-
Method Details
-
excluding
Generate an enum while excluding the specified values. The argument can be an empty array, but notnull
.- Parameters:
values
- to exclude- Returns:
- spec builder
- Since:
- 1.6.0
-
nullable
EnumGeneratorSpec<E> nullable()Indicates thatnull
value can be generated.- Returns:
- spec builder
- Since:
- 1.6.0
-