Interface EnumSpec<E extends Enum<E>>

Type Parameters:
E - enum type
All Superinterfaces:
AsGeneratorSpec<E>, EnumGeneratorSpec<E>, GeneratorSpec<E>, NullableGeneratorSpec<E>, Supplier<E>, ValueSpec<E>

public interface EnumSpec<E extends Enum<E>> extends ValueSpec<E>, EnumGeneratorSpec<E>
Spec for generating enums.
Since:
2.12.0
  • Method Summary

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

    Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec

    as, asString

    Methods inherited from interface org.instancio.generator.ValueSpec

    get, list, map, stream