org.jrdf.graph.global
Class BlankNodeImpl

java.lang.Object
  extended by org.jrdf.graph.AbstractBlankNode
      extended by org.jrdf.graph.global.BlankNodeImpl
All Implemented Interfaces:
Serializable, BlankNode, Node, ObjectNode, SubjectNode, TypedNodeVisitable

public class BlankNodeImpl
extends AbstractBlankNode

Globalized implementation of a BlankNode.

See Also:
Serialized Form

Constructor Summary
BlankNodeImpl()
           
 
Method Summary
 boolean equals(Object obj)
          While the internal structure of a BlankNode is not defined equality between two nodes should be able to be determined.
 String getUID()
           
 int hashCode()
          Returns a hash-code value for this BlankNode.
 String toString()
          Returns the String value of this BlankNode as: uid#id (eg. 29fbf7ba364f1425dda058737d764603#69)
 
Methods inherited from class org.jrdf.graph.AbstractBlankNode
accept, isBlankNode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlankNodeImpl

public BlankNodeImpl()
Method Detail

getUID

public String getUID()

hashCode

public int hashCode()
Returns a hash-code value for this BlankNode. While the implementation is not defined, if there is a blank node identifier then it should be the hash code generated from this. Hash code generation should follow the normal contract.

Specified by:
hashCode in interface BlankNode
Overrides:
hashCode in class Object
Returns:
a hash-code value for this blank node.

equals

public boolean equals(Object obj)
While the internal structure of a BlankNode is not defined equality between two nodes should be able to be determined.

Specified by:
equals in interface BlankNode
Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public String toString()
Returns the String value of this BlankNode as: uid#id (eg. 29fbf7ba364f1425dda058737d764603#69)

Overrides:
toString in class Object
Returns:
String