Package org.apache.jackrabbit.core.data
Class DataIdentifier
- java.lang.Object
-
- org.apache.jackrabbit.core.data.DataIdentifier
-
- All Implemented Interfaces:
java.io.Serializable
public class DataIdentifier extends java.lang.Object implements java.io.Serializable
Opaque data identifier used to identify records in a data store. All identifiers must be serializable and implement the standard object equality and hash code methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataIdentifier(java.lang.String identifier)
Creates a data identifier from the given string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Checks if the given object is a data identifier and has the same string representation as this one.int
hashCode()
Returns the hash code of the identifier string.java.lang.String
toString()
Returns the identifier string.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the identifier string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- identifier string
-
equals
public boolean equals(java.lang.Object object)
Checks if the given object is a data identifier and has the same string representation as this one.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- other object- Returns:
true
if the given object is the same identifier,false
otherwise
-
hashCode
public int hashCode()
Returns the hash code of the identifier string.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash code
-
-