Enum UnrarHeadertype

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UnrarHeadertype>

    public enum UnrarHeadertype
    extends java.lang.Enum<UnrarHeadertype>
    DOCUMENT ME
    Version:
    $LastChangedRevision$
    • Field Detail

      • headerByte

        private final byte headerByte
    • Constructor Detail

      • UnrarHeadertype

        private UnrarHeadertype​(byte headerByte)
    • Method Detail

      • values

        public static UnrarHeadertype[] 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 (UnrarHeadertype c : UnrarHeadertype.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UnrarHeadertype valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • findType

        public static UnrarHeadertype findType​(byte headerType)
        Returns the enum according to the given byte or null
        Parameters:
        headerType - the headerbyte
        Returns:
        the enum or null
      • equals

        public boolean equals​(byte header)
        Return true if the given byte is equal to the enum's byte
        Parameters:
        header - header
        Returns:
        true if the given byte is equal to the enum's byte
      • getHeaderByte

        public byte getHeaderByte()
        the header byte of this enum
        Returns:
        the header byte of this enum