Enum Signal
- All Implemented Interfaces:
Serializable, Comparable<Signal>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NavigableMap<String, Signal> An un-modifiable case-insensitiveNavigableMapof the names of all availableSignalsprivate final intstatic final NavigableMap<Integer, Signal> An un-modifiableNavigableMapof the numeric values of all availableSignals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Signalget(int num) Retrieves a signal value given its numeric valuestatic SignalRetrieves a signal value given its nameintstatic SignalReturns 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.
-
Enum Constant Details
-
HUP
-
INT
-
QUIT
-
ILL
-
TRAP
-
IOT
-
BUS
-
FPE
-
KILL
-
USR1
-
SEGV
-
USR2
-
PIPE
-
ALRM
-
TERM
-
STKFLT
-
CHLD
-
CONT
-
STOP
-
TSTP
-
TTIN
-
TTOU
-
URG
-
XCPU
-
XFSZ
-
VTALRM
-
PROF
-
WINCH
-
IO
-
PWR
-
-
Field Details
-
SIGNALS
-
NAME_LOOKUP_TABLE
An un-modifiable case-insensitiveNavigableMapof the names of all availableSignals- See Also:
-
NUMERIC_LOOKUP_TABLE
An un-modifiableNavigableMapof the numeric values of all availableSignals- See Also:
-
numeric
private final int numeric
-
-
Constructor Details
-
Signal
private Signal(int numeric)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumeric
public int getNumeric()- Returns:
- The signal's numeric value
-
get
-
get
-