public abstract class AbstractDataRecord extends 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(Object object)
Checks if the given object is a data record with the same identifier
as this one.
|
DataIdentifier |
getIdentifier()
Returns the data identifier.
|
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.
|
String |
toString()
Returns the string representation of the data identifier.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastModified, getLength, getStream
public AbstractDataRecord(AbstractDataStore store, DataIdentifier identifier)
identifier
- data identifierpublic DataIdentifier getIdentifier()
getIdentifier
in interface DataRecord
public String getReference()
DataRecord
null
if no such
reference is available.getReference
in interface DataRecord
null
public String toString()
public boolean equals(Object object)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.