krati.core.array.entry
Class EntryValueInt
java.lang.Object
krati.core.array.entry.EntryValue
krati.core.array.entry.EntryValueInt
- All Implemented Interfaces:
- Comparable<EntryValue>
public class EntryValueInt
- extends EntryValue
EntryValueInt.
- Author:
- jwu
val
public int val
EntryValueInt
public EntryValueInt(int pos,
int val,
long scn)
reinit
public final void reinit(int pos,
int val,
long scn)
getValue
public final int getValue()
toString
public String toString()
- Overrides:
toString
in class EntryValue
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
write
public void write(DataWriter writer)
throws IOException
- Writes this EntryValue to entry log file via a data writer.
- Specified by:
write
in class EntryValue
- Parameters:
writer
-
- Throws:
IOException
updateArrayFile
public void updateArrayFile(DataWriter writer,
long position)
throws IOException
- Writes this EntryValue at a given position of a data writer.
- Specified by:
updateArrayFile
in class EntryValue
- Parameters:
writer
- position
-
- Throws:
IOException
Copyright © 2011. All Rights Reserved.