java.lang.Object
net.jxta.impl.rendezvous.rpv.PeerViewDestination
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- PeerViewElement
- public class PeerViewDestination
- extends java.lang.Object
- implements java.lang.Comparable
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.
destAddress
private net.jxta.endpoint.EndpointAddress destAddress
- An explicit endpoint address. This is normally a peerID based address but we happen
to need it more often in the address form (it has also occured in the past that it could
usefully be a real transport address).
PeerViewDestination
public PeerViewDestination(net.jxta.endpoint.EndpointAddress addr)
- Constructs a PeerViewDestination from the given endpoint address.
PeerViewDestination
public PeerViewDestination(net.jxta.id.ID peerId)
- Constructs a PeerViewDestination from a (peer)ID.
getDestAddress
public net.jxta.endpoint.EndpointAddress getDestAddress()
- returns the destination address.
compareTo
public int compareTo(java.lang.Object other)
- null
Note that only the protocol address and at a lower order the protocol name are considered
for comparision.
- Specified by:
compareTo in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object other)
- null
hashCode
public int hashCode()
- null