public class RTCNodeKey extends Object implements Comparable<RTCNodeKey>
Constructor and Description |
---|
RTCNodeKey(int nodeid,
InetAddress ip,
String svcname)
the constructor for this class
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RTCNodeKey obj)
Implements java.jang.Comparable since this is a key to a tree map
|
boolean |
equals(Object o)
Overrides the 'equals()' method in the 'Object' superclass
|
InetAddress |
getIP()
Return the IP address
|
int |
getNodeID()
Return the node ID
|
String |
getSvcName()
Return the service name
|
int |
hashCode()
Overrides the 'hashCode()' method in the 'Object' superclass
|
String |
toString()
Returns a string representation of this key
|
public RTCNodeKey(int nodeid, InetAddress ip, String svcname)
nodeid
- the node IDip
- the node IPsvcname
- the service in the nodepublic int getNodeID()
public String getSvcName()
public InetAddress getIP()
public int hashCode()
public boolean equals(Object o)
public int compareTo(RTCNodeKey obj)
compareTo
in interface Comparable<RTCNodeKey>
obj
- a RTCNodeKey
object.Copyright © 2021. All rights reserved.