@UnstableApi public abstract class AbstractDnsRecord extends java.lang.Object implements DnsRecord
DnsRecord
.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
限定符 | 构造器和说明 |
---|---|
protected |
AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
int dnsClass,
long timeToLive)
Creates a new record.
|
protected |
AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
long timeToLive)
Creates a new
IN-class record. |
限定符和类型 | 方法和说明 |
---|---|
int |
dnsClass()
Returns the class of this resource record.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
name()
Returns the name of this resource record.
|
long |
timeToLive()
Returns the time to live after reading for this resource record.
|
java.lang.String |
toString() |
DnsRecordType |
type()
Returns the type of this resource record.
|
protected AbstractDnsRecord(java.lang.String name, DnsRecordType type, long timeToLive)
IN-class
record.name
- the domain nametype
- the type of the recordtimeToLive
- the TTL value of the recordprotected AbstractDnsRecord(java.lang.String name, DnsRecordType type, int dnsClass, long timeToLive)
name
- the domain nametype
- the type of the recorddnsClass
- the class of the record, usually one of the following:
timeToLive
- the TTL value of the recordpublic java.lang.String name()
DnsRecord
public DnsRecordType type()
DnsRecord
public int dnsClass()
DnsRecord
public long timeToLive()
DnsRecord
timeToLive
在接口中 DnsRecord
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object