com.sas.drugdev.remote.repository
Class NodeId

java.lang.Object
  extended by com.sas.drugdev.remote.repository.NodeId
All Implemented Interfaces:
java.io.Serializable

public class NodeId
extends java.lang.Object
implements java.io.Serializable

Simple class representing an ID of an Node. Get an instance by using the fromString(java.lang.String) static method. This object can be rendered as a String using the toString() method. Use this string then, in the fromString method. This provides a mechanism to persist the id information and later construct an NodeId object using it.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object o)
           
static NodeId fromString(java.lang.String string)
          Get an NodeId with the given String.
 int hashCode()
           
 java.lang.String toString()
          Get the string representation of this NodeId.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Get the string representation of this NodeId. This string can later be used in the fromString(String) method to reconstruct this NodeId

Overrides:
toString in class java.lang.Object

fromString

public static NodeId fromString(java.lang.String string)
Get an NodeId with the given String. This string can be retrieved from the toString() method.

Parameters:
string - string representation of the id to contruct an NodeId with.
Returns:
an NodeId

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object