Enum Class SubBlockHeaderType

java.lang.Object
java.lang.Enum<SubBlockHeaderType>
com.github.junrar.rarfile.SubBlockHeaderType
All Implemented Interfaces:
Serializable, Comparable<SubBlockHeaderType>, Constable

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

  • Field Details

    • subblocktype

      private final short subblocktype
  • Constructor Details

    • SubBlockHeaderType

      private SubBlockHeaderType(short subblocktype)
  • Method Details

    • values

      public static SubBlockHeaderType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubBlockHeaderType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • equals

      public boolean equals(short subblocktype)
      Return true if the given value is equal to the enum's value
      Parameters:
      subblocktype - .
      Returns:
      true if the given value is equal to the enum's value
    • findSubblockHeaderType

      public static SubBlockHeaderType findSubblockHeaderType(short subType)
      find the header type for the given short value
      Parameters:
      subType - the short value
      Returns:
      the corresponding enum or null
    • getSubblocktype

      public short getSubblocktype()
      Returns:
      the short representation of this enum