public class ResourceRecordImpl extends java.lang.Object implements ResourceRecord
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
attributes
A variable length string of octets that describes the
resource.
|
private java.lang.String |
domainName
An owner name, i.e., the name of the node to which this
resource record pertains.
|
private RecordClass |
recordClass
Two octets containing one of the resource record CLASS codes.
|
private RecordType |
recordType
Two octets containing one of the resource record TYPE codes.
|
private int |
timeToLive
A 32 bit signed integer that specifies the time interval
that the resource record may be cached before the source
of the information should again be consulted.
|
| Constructor and Description |
|---|
ResourceRecordImpl(java.lang.String domainName,
RecordType recordType,
RecordClass recordClass,
int timeToLive,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Creates a new instance of ResourceRecordImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
get(java.lang.String id) |
java.lang.String |
getDomainName() |
RecordClass |
getRecordClass() |
RecordType |
getRecordType() |
int |
getTimeToLive() |
int |
hashCode()
Compute the instance hash code
|
java.lang.String |
toString() |
private java.lang.String domainName
private RecordType recordType
private RecordClass recordClass
private int timeToLive
private java.util.Map<java.lang.String,java.lang.Object> attributes
public ResourceRecordImpl(java.lang.String domainName,
RecordType recordType,
RecordClass recordClass,
int timeToLive,
java.util.Map<java.lang.String,java.lang.Object> attributes)
domainName - recordType - recordClass - timeToLive - attributes - public java.lang.String getDomainName()
getDomainName in interface ResourceRecordpublic RecordType getRecordType()
getRecordType in interface ResourceRecordpublic RecordClass getRecordClass()
getRecordClass in interface ResourceRecordpublic int getTimeToLive()
getTimeToLive in interface ResourceRecordpublic java.lang.String get(java.lang.String id)
get in interface ResourceRecordpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object