Package nl.sidnlabs.dnslib.types
Enum Class ResourceRecordClass
- All Implemented Interfaces:
Serializable,Comparable<ResourceRecordClass>,Constable
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]
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceRecordClassfromString(String name) static ResourceRecordClassfromValue(int value) intgetValue()static ResourceRecordClassReturns the enum constant of this class with the specified name.static ResourceRecordClass[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESERVED
-
IN
-
CH
-
HS
-
NONE
-
ANY
-
UNASSIGNED
-
PRIVATE
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
fromString
-
fromValue
-