org.apache.jackrabbit.core.state
Class NodeReferencesId

java.lang.Object
  extended byorg.apache.jackrabbit.core.ItemId
      extended byorg.apache.jackrabbit.core.NodeId
          extended byorg.apache.jackrabbit.core.state.NodeReferencesId
All Implemented Interfaces:
Serializable

public class NodeReferencesId
extends NodeId

Identifies a NodeReferences object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.ItemId
hash
 
Constructor Summary
NodeReferencesId(String uuid)
          Create a new instance of this class.
 
Method Summary
 boolean equals(Object obj)
          Compares node identifiers for equality.
 int hashCode()
          Returns the hash code of the node UUID. The computed hash code is memorized for better performance.
static NodeId valueOf(String s)
          Returns a NodeReferencesId holding the value of the specified string.
 
Methods inherited from class org.apache.jackrabbit.core.NodeId
denotesNode, getUUID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeReferencesId

public NodeReferencesId(String uuid)
Create a new instance of this class. Takes a UUID as parameter.

Parameters:
uuid - uuid of target node
Method Detail

valueOf

public static NodeId valueOf(String s)
                      throws IllegalArgumentException
Returns a NodeReferencesId holding the value of the specified string. The string must be in the format returned by the NodeReferencesId.toString() method.

Parameters:
s - a String containing the NodeReferencesId representation to be parsed.
Returns:
the NodeReferencesId represented by the argument
Throws:
IllegalArgumentException - if the specified string can not be parsed as a NodeReferencesId.
See Also:
NodeId.toString()

equals

public boolean equals(Object obj)
Compares node identifiers for equality.

Overrides:
equals in class NodeId
Parameters:
obj - other object
Returns:
true if the given object is a node identifier instance that identifies the same node as this identifier, false otherwise
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Returns the hash code of the node UUID. The computed hash code is memorized for better performance.

Overrides:
hashCode in class NodeId
Returns:
hash code
See Also:
Object.hashCode()


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.