Enum SubBlockHeaderType

    • Field Detail

      • subblocktype

        private final short subblocktype
    • Constructor Detail

      • SubBlockHeaderType

        private SubBlockHeaderType​(short subblocktype)
    • Method Detail

      • values

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

        public static SubBlockHeaderType 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
      • 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