public class FieldRecord.Record
extends java.lang.Object
| Red (tfeng) |
| Red (tfeng) |
| Constructor and Description |
|---|
Record(int[] indices,
java.lang.Object value,
long timestamp)
Construct a record and store an old value in it.
|
Record(int[] indices,
java.lang.Object value,
long timestamp,
boolean isBackup)
Construct a record and store an old value in it.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIdentifier()
Get the identifier of this record.
|
int[] |
getIndices()
Get the indices on the left-hand side of the assignment.
|
long |
getTimestamp()
Get the timestamp taken at the time when the record is
created.
|
java.lang.Object |
getValue()
Get the old value of this record.
|
boolean |
isBackup()
Test if this record is a backup of an array.
|
java.lang.String |
toString()
Convert this record to a readable string.
|
Record(int[] indices,
java.lang.Object value,
long timestamp)
indices - The indices on the left-hand side of the
assignment.value - The old value. If the old value is of a
primitive type, it should be boxed with the corresponding
object type.timestamp - The current timestamp.Record(int[] indices,
java.lang.Object value,
long timestamp,
boolean isBackup)
indices - The indices on the left-hand side of the
assignment.value - The old value. If the old value is of a
primitive type, it should be boxed with the corresponding
object type.timestamp - The current timestamp.isBackup - Whether this record is a backup of an array.public int getIdentifier()
public int[] getIndices()
public long getTimestamp()
public java.lang.Object getValue()
public boolean isBackup()
public java.lang.String toString()
toString in class java.lang.Object