public abstract class AbstractDataRecord extends java.lang.Object implements DataRecord
Object equality, hash code, and string
representation methods based on the identifier.| Constructor and Description |
|---|
AbstractDataRecord(AbstractDataStore store,
DataIdentifier identifier)
Creates a data record with the given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Checks if the given object is a data record with the same identifier
as this one.
|
DataIdentifier |
getIdentifier()
Returns the data identifier.
|
java.lang.String |
getReference()
Returns a secure reference to this binary, or
null if no such
reference is available. |
int |
hashCode()
Returns the hash code of the data identifier.
|
java.lang.String |
toString()
Returns the string representation of the data identifier.
|
getLastModified, getLength, getStreampublic AbstractDataRecord(AbstractDataStore store, DataIdentifier identifier)
identifier - data identifierpublic DataIdentifier getIdentifier()
getIdentifier in interface DataRecordpublic java.lang.String getReference()
DataRecordnull if no such
reference is available.getReference in interface DataRecordnullpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - other objecttrue if the other object is a data record and has
the same identifier as this one, false otherwisepublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved