Class AbstractDataRecord
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.blob.AbstractDataRecord
-
- All Implemented Interfaces:
DataRecord
public abstract class AbstractDataRecord extends java.lang.Object implements DataRecord
ImplementsDataRecord
-
-
Constructor Summary
Constructors Constructor Description AbstractDataRecord(AbstractSharedBackend backend, DataIdentifier identifier)Creates a data record with the given identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Checks if the given object is a data record with the same identifier as this one.DataIdentifiergetIdentifier()Returns the data identifier.java.lang.StringgetReference()Delegates the call to the backend to retrieve reference.inthashCode()Returns the hash code of the data identifier.java.lang.StringtoString()Returns the string representation of the data identifier.-
Methods inherited from interface org.apache.jackrabbit.core.data.DataRecord
getLastModified, getLength, getStream
-
-
-
-
Constructor Detail
-
AbstractDataRecord
public AbstractDataRecord(AbstractSharedBackend backend, DataIdentifier identifier)
Creates a data record with the given identifier.- Parameters:
identifier- data identifier
-
-
Method Detail
-
getIdentifier
public DataIdentifier getIdentifier()
Returns the data identifier.- Specified by:
getIdentifierin interfaceDataRecord- Returns:
- data identifier
-
getReference
public java.lang.String getReference()
Delegates the call to the backend to retrieve reference.- Specified by:
getReferencein interfaceDataRecord- Returns:
-
toString
public java.lang.String toString()
Returns the string representation of the data identifier.- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation
-
equals
public boolean equals(java.lang.Object object)
Checks if the given object is a data record with the same identifier as this one.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- other object- Returns:
trueif the other object is a data record and has the same identifier as this one,falseotherwise
-
hashCode
public int hashCode()
Returns the hash code of the data identifier.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
-