public static enum Warning.WarningState extends Enum<Warning.WarningState>
列挙型定数と説明 |
---|
DEFAULT
Indicates each warning would default to the configured
Warning annotation, 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.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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)
指定した名前を持つこの型の列挙型定数を返します。
|
static Warning.WarningState[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合public boolean printFor(Warning warning)
warning
- The warning annotation added to a deprecated itemWarning.value()
, true otherwise.
public static Warning.WarningState value(String value)
value
- The string value to checkDEFAULT
if not found, or the respective
WarningStateCopyright © 2016. All rights reserved.