Enum DNSOperationCode

java.lang.Object
java.lang.Enum<DNSOperationCode>
javax.jmdns.impl.constants.DNSOperationCode
All Implemented Interfaces:
Serializable, Comparable<DNSOperationCode>

public enum DNSOperationCode extends Enum<DNSOperationCode>
DNS operation code.
  • Enum Constant Details

  • Field Details

    • OpCode_MASK

      static final int OpCode_MASK
      DNS RCode types are encoded on the last 4 bits
      See Also:
    • _externalName

      private final String _externalName
    • _index

      private final int _index
  • Constructor Details

    • DNSOperationCode

      private DNSOperationCode(String name, int index)
  • Method Details

    • values

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

      public static DNSOperationCode 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
    • externalName

      public String externalName()
      Return the string representation of this type
      Returns:
      String
    • indexValue

      public int indexValue()
      Return the numeric value of this type
      Returns:
      String
    • operationCodeForFlags

      public static DNSOperationCode operationCodeForFlags(int flags)
      Parameters:
      flags -
      Returns:
      label
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DNSOperationCode>