Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.jxta.impl.rendezvous.rpv
Class PeerViewDestination  view PeerViewDestination download PeerViewDestination.java

java.lang.Object
  extended bynet.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.


Field Summary
private  net.jxta.endpoint.EndpointAddress destAddress
          An explicit endpoint address.
 
Constructor Summary
PeerViewDestination(net.jxta.endpoint.EndpointAddress addr)
          Constructs a PeerViewDestination from the given endpoint address.
PeerViewDestination(net.jxta.id.ID peerId)
          Constructs a PeerViewDestination from a (peer)ID.
 
Method Summary
 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.
 boolean equals(java.lang.Object other)
          null
 net.jxta.endpoint.EndpointAddress getDestAddress()
          returns the destination address.
 int hashCode()
          null
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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).

Constructor Detail

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.

Method Detail

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