@Retention(value=RUNTIME) @Target(value=FIELD) public @interface AllowedRawValues
If you instead want to limit values to be in a set of parsed values then you
should use the AllowedValues
annotation instead. However for simple
use cases this restriction will always be more efficient.
Modifier and Type | Optional Element and Description |
---|---|
String[] |
allowedValues
If provided restricts the values for the option to the given set of
values
|
boolean |
ignoreCase
If true the case on
allowedValues() is ignored |
String |
locale
The locale used for comparisons
|
public abstract String[] allowedValues
public abstract boolean ignoreCase
allowedValues()
is ignoredpublic abstract String locale
Copyright © 2012–2017. All rights reserved.