Enum SolAckState
- All Implemented Interfaces:
Serializable,Comparable<SolAckState>
Enumeration of possible acknowledge states for SOL messages.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbyteencodeInByte(byte value) Encode information about thisSolAckStatein given byte, returning updated byte.static SolAckStateextractFromByte(byte value) ExtractsSolAckStatefrom given byte.static SolAckStateReturns the enum constant of this type with the specified name.static SolAckState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACK
Message was acknowledged. -
NACK
Message was not acknowledged.
-
-
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
-
extractFromByte
ExtractsSolAckStatefrom given byte.- Parameters:
value- byte with encodedSolAckState- Returns:
SolAckStateextracted from byte
-
encodeInByte
public byte encodeInByte(byte value) Encode information about thisSolAckStatein given byte, returning updated byte.- Parameters:
value- current byte value- Returns:
- updated byte value
-