Serializable, Comparable<Warning.WarningState>public static enum Warning.WarningState extends Enum<Warning.WarningState>
| Enum Constant | Description | 
|---|---|
| DEFAULT | Indicates each warning would default to the configured  Warningannotation, or always if annotation not found. | 
| OFF | Indicates no warnings should be printed for deprecated items. | 
| ON | Indicates all warnings should be printed for deprecated items. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | printFor(Warning warning) | This method checks the provided warning should be printed for this
 state | 
| static Warning.WarningState | value(String value) | This method returns the corresponding warning state for the given
 string value. | 
| static Warning.WarningState | valueOf(String name) | Returns the enum constant of this type with the specified name. | 
| static Warning.WarningState[] | values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Warning.WarningState ON
public static final Warning.WarningState OFF
public static final Warning.WarningState DEFAULT
Warning annotation, or always if annotation not found.public static Warning.WarningState[] values()
for (Warning.WarningState c : Warning.WarningState.values()) System.out.println(c);
public static Warning.WarningState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean printFor(@Nullable Warning warning)
warning - The warning annotation added to a deprecated itemWarning.value(), true otherwise.
     @NotNull public static Warning.WarningState value(@Nullable String value)
value - The string value to checkDEFAULT if not found, or the respective
     WarningStateCopyright © 2020. All rights reserved.