DnsRecord.
| Modifier and Type | Field and Description |
|---|---|
| private final short | |
| private int | |
| private final String | |
| private final long | |
| private final DnsRecordType |
| Access | Constructor and Description |
|---|---|
| protected | AbstractDnsRecord(String
the domain name name, DnsRecordType the type of the record type, long the TTL value of the record timeToLive)Creates a new |
| protected | AbstractDnsRecord(String
the domain name name, DnsRecordType the type of the record type, int the class of the record, usually one of the following:
dnsClass, long the TTL value of the record timeToLive)Creates a new record. |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public int | dnsClass()
Implements io. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| private static String | |
| public String | name()
Implements io. |
| public long | timeToLive()
Implements io. |
| public String | |
| public DnsRecordType | type()
Implements io. |
| dnsClass | back to summary |
|---|---|
| private final short dnsClass | |
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| name | back to summary |
|---|---|
| private final String name | |
| timeToLive | back to summary |
|---|---|
| private final long timeToLive | |
| type | back to summary |
|---|---|
| private final DnsRecordType type | |
| AbstractDnsRecord | back to summary |
|---|---|
| protected AbstractDnsRecord(String name, DnsRecordType type, long timeToLive) Creates a new
| |
| AbstractDnsRecord | back to summary |
|---|---|
| protected AbstractDnsRecord(String name, DnsRecordType type, int dnsClass, long timeToLive) Creates a new record.
| |
| appendTrailingDot | back to summary |
|---|---|
| private static String appendTrailingDot(String name) | |
| dnsClass | back to summary |
|---|---|
| public int dnsClass() Implements io. Doc from io. Returns the class of this resource record.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| IDNtoASCII | back to summary |
|---|---|
| private static String IDNtoASCII(String name) | |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. Returns the name of this resource record.
| |
| timeToLive | back to summary |
|---|---|
| public long timeToLive() Implements io. Doc from io. Returns the time to live after reading for this resource record.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| type | back to summary |
|---|---|
| public DnsRecordType type() Implements io. Doc from io. Returns the type of this resource record.
| |