public abstract class AbstractDataRecord extends java.lang.Object implements DataRecord
DataRecord
Modifier and Type | Field and Description |
---|---|
protected AbstractSharedBackend |
backend
The data store that contains this record.
|
Constructor and Description |
---|
AbstractDataRecord(AbstractSharedBackend backend,
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()
Delegates the call to the backend to retrieve reference.
|
int |
hashCode()
Returns the hash code of the data identifier.
|
java.lang.String |
toString()
Returns the string representation of the data identifier.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastModified, getLength, getStream
protected final AbstractSharedBackend backend
public AbstractDataRecord(AbstractSharedBackend backend, DataIdentifier identifier)
identifier
- data identifierpublic DataIdentifier getIdentifier()
getIdentifier
in interface DataRecord
public java.lang.String getReference()
getReference
in interface DataRecord
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- 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.Object
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.