Enum ResourceRecordClass

  • All Implemented Interfaces:
    Serializable, Comparable<ResourceRecordClass>

    public enum ResourceRecordClass
    extends Enum<ResourceRecordClass>
    Reference [RFC-ietf-dnsext-rfc6195bis-05] Note As noted in [RFC-cheshire-dnsext-multicastdns-15], Multicast DNS can only carry DNS records with classes in the range 0-32767. Classes in the range 32768 to 65535 are incompatible with Multicast DNS. Decimal Hexadecimal Name Reference 0 0x0000 Reserved [RFC-ietf-dnsext-rfc6195bis-05] 1 0x0001 Internet (IN) [RFC1035] 2 0x0002 Unassigned 3 0x0003 Chaos (CH) [D. Moon, "Chaosnet", A.I. Memo 628, Massachusetts Institute of Technology Artificial Intelligence Laboratory, June 1981.] 4 0x0004 Hesiod (HS) [Dyer, S., and F. Hsu, "Hesiod", Project Athena Technical Plan - Name Service, April 1987.] 5-253 0x0005-0x00FD Unassigned 254 0x00FD QCLASS NONE [RFC2136] 255 0x00FF QCLASS * (ANY) [RFC1035] 256-65279 0x0100-0xFEFF Unassigned 65280-65534 0xFF00-0xFFFE Reserved for Private Use [RFC-ietf-dnsext-rfc6195bis-05] 65535 0xFFFF Reserved [RFC-ietf-dnsext-rfc6195bis-05]
    • Method Detail

      • values

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

        public static ResourceRecordClass 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
      • getValue

        public int getValue()