org.apache.jackrabbit.core.state
Class NodeReferencesId
java.lang.Object
org.apache.jackrabbit.core.ItemId
org.apache.jackrabbit.core.NodeId
org.apache.jackrabbit.core.state.NodeReferencesId
- All Implemented Interfaces:
- Serializable
- public class NodeReferencesId
- extends NodeId
Identifies a NodeReferences
object.
- See Also:
- Serialized Form
Fields inherited from class org.apache.jackrabbit.core.ItemId |
hash |
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. |
NodeReferencesId
public NodeReferencesId(String uuid)
- Create a new instance of this class. Takes a UUID as parameter.
- Parameters:
uuid
- uuid of target node
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.