Enum EventDirection
- All Implemented Interfaces:
Serializable,Comparable<EventDirection>
Whether a system event is an assertion or a deassertion (bit 7 of the Event Dir | Event Type byte, IPMI 2.0 table
32-1).
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe event asserts its state.The event deasserts its state. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the value of the event direction bit.static EventDirectionparseInt(int value) Returns the event direction of an event direction bit.static EventDirectionReturns the enum constant of this type with the specified name.static EventDirection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Assertion
The event asserts its state. -
Deassertion
The event deasserts its state.
-
-
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
-
getCode
public int getCode()Returns the value of the event direction bit.- Returns:
- 0 for Assertion, 1 for Deassertion
-
parseInt
Returns the event direction of an event direction bit.- Parameters:
value- the event direction bit, 0 or 1- Returns:
- the event direction
- Throws:
IllegalArgumentException- when the value is not 0 or 1
-