Project JXTA

net.jxta.impl.id.unknown
Class ID

java.lang.Object
  extended by net.jxta.id.ID
      extended by net.jxta.impl.id.unknown.ID
All Implemented Interfaces:
Serializable

public final class ID
extends ID

IDs are used to uniquely identify peers, peer groups, pipes and other types of objects manipulated by the JXTA APIs.

See Also:
IDFactory, CodatID, PeerID, PeerGroupID, PipeID, ModuleClassID, ModuleSpecID, Serialized Form

Field Summary
(package private)  String unqiueValue
           
 
Fields inherited from class net.jxta.id.ID
nullID, URIEncodingName, URNNamespace
 
Constructor Summary
ID(String value)
          Constructor for IDs.
 
Method Summary
 boolean equals(Object target)
          
 String getIDFormat()
          
 Object getUniqueValue()
          
 URL getURL()
          
(package private) static URL getURL(String uniqueValue)
          Public member which returns a URI (URL in Java nomenclature) of the ID.
 int hashCode()
          
 URI toURI()
          
 
Methods inherited from class net.jxta.id.ID
clone, create, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

unqiueValue

String unqiueValue
Constructor Detail

ID

ID(String value)
Constructor for IDs.

Method Detail

equals

public boolean equals(Object target)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getIDFormat

public String getIDFormat()

Specified by:
getIDFormat in class ID

getUniqueValue

public Object getUniqueValue()

Specified by:
getUniqueValue in class ID

getURL

public URL getURL()

Specified by:
getURL in class ID

getURL

static URL getURL(String uniqueValue)
Public member which returns a URI (URL in Java nomenclature) of the ID.

Parameters:
uniqueValue - the unique portion of the ID
Returns:
URL Object containing the URI

toURI

public URI toURI()

Overrides:
toURI in class ID

JXTA J2SE