Enum Class OpcodeType

java.lang.Object
java.lang.Enum<OpcodeType>
nl.sidnlabs.dnslib.types.OpcodeType
All Implemented Interfaces:
Serializable, Comparable<OpcodeType>, Constable

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
  • Enum Constant Details

    • STANDARD

      public static final OpcodeType STANDARD
    • INVERSE

      public static final OpcodeType INVERSE
    • STATUS

      public static final OpcodeType STATUS
    • UNASSIGNED_3

      public static final OpcodeType UNASSIGNED_3
    • NOTIFY

      public static final OpcodeType NOTIFY
    • UPPDATE

      public static final OpcodeType UPPDATE
    • UNASSIGNED

      public static final OpcodeType UNASSIGNED
  • Method Details

    • values

      public static OpcodeType[] 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 OpcodeType 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
    • fromString

      public static OpcodeType fromString(String name)
    • fromValue

      public static OpcodeType fromValue(int value)
    • getValue

      public int getValue()