Package org.yamcs.cfdp.pdu
Enum HandlerCode
- java.lang.Object
-
- java.lang.Enum<HandlerCode>
-
- org.yamcs.cfdp.pdu.HandlerCode
-
- All Implemented Interfaces:
Serializable,Comparable<HandlerCode>
public enum HandlerCode extends Enum<HandlerCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDON_TRANSACTIONIGNORE_ERRORNOTICE_OF_CANCELLATIONNOTICE_OF_SUSPENSIONRESERVED
-
Field Summary
Fields Modifier and Type Field Description static Map<Integer,HandlerCode>Lookup
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()static HandlerCodereadHandlerCode(byte b)static HandlerCodevalueOf(String name)Returns the enum constant of this type with the specified name.static HandlerCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESERVED
public static final HandlerCode RESERVED
-
NOTICE_OF_CANCELLATION
public static final HandlerCode NOTICE_OF_CANCELLATION
-
NOTICE_OF_SUSPENSION
public static final HandlerCode NOTICE_OF_SUSPENSION
-
IGNORE_ERROR
public static final HandlerCode IGNORE_ERROR
-
ABANDON_TRANSACTION
public static final HandlerCode ABANDON_TRANSACTION
-
-
Field Detail
-
Lookup
public static final Map<Integer,HandlerCode> Lookup
-
-
Method Detail
-
values
public static HandlerCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HandlerCode c : HandlerCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HandlerCode valueOf(String name)
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()
-
readHandlerCode
public static HandlerCode readHandlerCode(byte b)
-
-