Enum FileDirectiveCode

java.lang.Object
java.lang.Enum<FileDirectiveCode>
org.yamcs.cfdp.pdu.FileDirectiveCode
All Implemented Interfaces:
Serializable, Comparable<FileDirectiveCode>

public enum FileDirectiveCode extends Enum<FileDirectiveCode>
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static FileDirectiveCode[] 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

      public static FileDirectiveCode 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 name
      NullPointerException - if the argument is null
    • getCode

      public byte getCode()
    • fromCode

      public static FileDirectiveCode fromCode(byte code)
      returns the FileDirectiveCode for the given code or null if it is not defined
    • readFileDirectiveCodeFromHalfAByte

      public static FileDirectiveCode readFileDirectiveCodeFromHalfAByte(byte b)