static <E extends Enum<E>> EnumValidator<E> |
EnumValidator.create(Class<E> enumType) |
Creates a new validator for the enum type that accepts all enum values.
|
static <E extends Enum<E>> EnumValidator<E> |
EnumValidator.create(Class<E> enumType,
E... allowed) |
Creates a new validator for the enum type with the allowed values defined in the allowed parameter.
|
static <E extends Enum<E>> EnumValidator<E> |
EnumValidator.create(Class<E> enumType,
EnumSet<E> allowed) |
Creates a new validator for the enum type with the allowed values defined in the allowed parameter.
|