Enum OpcodeType

  • All Implemented Interfaces:
    Serializable, Comparable<OpcodeType>

    public enum OpcodeType
    extends Enum<OpcodeType>
    DNS OpCodes Registration Procedures Standards Action as modified by [RFC4020] Reference [RFC-ietf-dnsext-rfc6195bis-05][RFC1035] OpCode Name Reference 0 Query [RFC1035] 1 IQuery (Inverse Query, OBSOLETE) [RFC3425] 2 Status [RFC1035] 3 Unassigned 4 Notify [RFC1996] 5 Update [RFC2136] 6-15 Unassigned
    • Method Detail

      • values

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

        public static OpcodeType 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
      • fromValue

        public static OpcodeType fromValue​(int value)
      • getValue

        public int getValue()