javax.jmdns.impl

Class DNSEntry

Known Direct Subclasses:
DNSQuestion, DNSRecord

public class DNSEntry
extends java.lang.Object

DNS entry with a name, type, and class. This is the base class for questions and records.

Method Summary

boolean
equals(Object obj)
Check if two entries have exactly the same name, type, and class.
String
getName()
int
getType()
int
hashCode()
Overriden, to return a value which is consistent with the value returned by equals(Object).
String
toString(String hdr, String other)

Method Details

equals

public boolean equals(Object obj)
Check if two entries have exactly the same name, type, and class.

getName

public String getName()

getType

public int getType()

hashCode

public int hashCode()
Overriden, to return a value which is consistent with the value returned by equals(Object).

toString

public String toString(String hdr,
                       String other)