|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<When> javax.annotation.meta.When
public enum When
Used to describe the relationship between a qualifier T and the set of values S possible on an annotated element. In particular, an issues should be reported if an ALWAYS or MAYBE value is used where a NEVER value is required, or if a NEVER or MAYBE value is used where an ALWAYS value is required.
Enum Constant Summary | |
---|---|
ALWAYS
S is a subset of T |
|
MAYBE
S intersection T is non empty and S - T is nonempty |
|
NEVER
S intersection T is empty |
|
UNKNOWN
nothing definitive is known about the relation between S and T |
Method Summary | |
---|---|
static When |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static When[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final When ALWAYS
public static final When UNKNOWN
public static final When MAYBE
public static final When NEVER
Method Detail |
---|
public static final When[] values()
for(When c : When.values()) System.out.println(c);
public static When valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |