|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.rendezvous.rpv.PeerViewDestination
This class contains only the comparable portion of PeerViewElement, so that it is possible to search for elements in the sorted set that the local PeerView is, without having enough information to create a valid PeerViewElement.
Constructor Summary | |
PeerViewDestination(EndpointAddress addr)
Constructs a PeerViewDestination from the given endpoint address. |
|
PeerViewDestination(ID peerId)
Constructs a PeerViewDestination from a (peer)ID. |
Method Summary | |
int |
compareTo(Object other)
Note that only the protocol address and at a lower order the protocol name are considered for comparision. |
boolean |
equals(Object other)
|
EndpointAddress |
getDestAddress()
returns the destination address. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PeerViewDestination(EndpointAddress addr)
public PeerViewDestination(ID peerId)
Method Detail |
public EndpointAddress getDestAddress()
public int compareTo(Object other)
compareTo
in interface Comparable
public boolean equals(Object other)
public int hashCode()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |