Class DataIdentifier

java.lang.Object
org.apache.jackrabbit.core.data.DataIdentifier
All Implemented Interfaces:
Serializable

public class DataIdentifier extends Object implements 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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataIdentifier(String identifier)
    Creates a data identifier from the given string.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Checks if the given object is a data identifier and has the same string representation as this one.
    int
    Returns the hash code of the identifier string.
    Returns the identifier string.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DataIdentifier

      public DataIdentifier(String identifier)
      Creates a data identifier from the given string.
      Parameters:
      identifier - data identifier
  • Method Details

    • toString

      public String toString()
      Returns the identifier string.
      Overrides:
      toString in class Object
      Returns:
      identifier string
    • equals

      public boolean equals(Object object)
      Checks if the given object is a data identifier and has the same string representation as this one.
      Overrides:
      equals in class 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 class Object
      Returns:
      hash code