|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord
public abstract class AbstractDataRecord
Abstract class for a data record.
| Field Summary | |
|---|---|
protected long |
_RecordID
An individual sequencial identifier. |
| Constructor Summary | |
|---|---|
AbstractDataRecord()
|
|
| Method Summary | |
|---|---|
protected void |
_Init()
Initialise. |
protected void |
_Init(AbstractDataRecord aAbstractDataRecord)
Initialise from aAbstractDataRecord. |
int |
compareTo(java.lang.Object object)
Method required by Comparable |
boolean |
equals(java.lang.Object object)
|
long |
get_RecordID()
|
static long |
getNumberOfBitsInByte()
|
long |
getSizeInBytes()
|
int |
hashCode()
|
java.lang.String |
toCSVString()
|
java.lang.String |
toCSVStringFields()
|
java.lang.String |
toString()
|
void |
write(java.io.RandomAccessFile aRandomAccessFile)
Writes out: this._RecordID as a long
this.hashCode as a int
to aRandomAccessFile. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long _RecordID
| Constructor Detail |
|---|
public AbstractDataRecord()
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic static long getNumberOfBitsInByte()
public long get_RecordID()
this._RecordIDprotected void _Init(AbstractDataRecord aAbstractDataRecord)
protected void _Init()
public java.lang.String toString()
toString in class java.lang.ObjectString description of this.public java.lang.String toCSVString()
String of the values
of the Fields of this.public java.lang.String toCSVStringFields()
String of the names
of the Variables as returned in toString().
public void write(java.io.RandomAccessFile aRandomAccessFile)
throws java.io.IOException
longint
aRandomAccessFile - The RandomAccessFile written to.
java.io.IOExceptionpublic boolean equals(java.lang.Object object)
equals in class java.lang.ObjectObject.equals(Object)public int compareTo(java.lang.Object object)
compareTo in interface java.lang.ComparableComparable.compareTo(Object)public long getSizeInBytes()
bytes) of this as a long.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||