public enum Signal extends Enum<Signal>
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
String |
codeAsString() |
static Signal |
from(int code)
Return appropriate instance of
Signal for given signal code. |
static Signal |
from(String code)
Return appropriate instance of
Signal for given signal code. |
static Signal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Signal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Signal COMPLETE
public static final Signal ERROR
public static final Signal CANCEL
public static Signal[] values()
for (Signal c : Signal.values()) System.out.println(c);
public static Signal 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 int code()
public String codeAsString()
public static Signal from(String code)
Signal for given signal code.code - signal codeCopyright © 2015–2019. All rights reserved.