|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--groupmgmt.Member
The Member is identified by its address and port.
Constructor Summary | |
Member(java.net.InetAddress address,
int port)
Create a Member. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compare another Member to this one. |
boolean |
equals(java.lang.Object o)
Returns true if the specified object is a Member and has the same address and port number. |
java.net.InetAddress |
getAddress()
Returns the IP address of the host represented by this Member. |
int |
getPort()
Returns the port of the host represented by this Member. |
int |
hashCode()
Returns a hash value based on the IP and port of this Member |
java.lang.String |
toString()
Get a String representation of this Member. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Member(java.net.InetAddress address, int port)
address
- The InetAddress of the Member.port
- The port number of the Member.Method Detail |
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- The Object to compare this Member to.ClassCastException
- If the specified object is not a Member.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.net.InetAddress getAddress()
public int getPort()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |