krati.core.array.entry
Class EntryValueInt

java.lang.Object
  extended by krati.core.array.entry.EntryValue
      extended by krati.core.array.entry.EntryValueInt
All Implemented Interfaces:
Comparable<EntryValue>

public class EntryValueInt
extends EntryValue

EntryValueInt.

Author:
jwu

Field Summary
 int val
           
 
Fields inherited from class krati.core.array.entry.EntryValue
pos, scn
 
Constructor Summary
EntryValueInt(int pos, int val, long scn)
           
 
Method Summary
 boolean equals(Object o)
           
 int getValue()
           
 int hashCode()
           
 void reinit(int pos, int val, long scn)
           
 String toString()
           
 void updateArrayFile(DataWriter writer, long position)
          Writes this EntryValue at a given position of a data writer.
 void write(DataWriter writer)
          Writes this EntryValue to entry log file via a data writer.
 
Methods inherited from class krati.core.array.entry.EntryValue
compareTo, getPosition, getScn
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

val

public int val
Constructor Detail

EntryValueInt

public EntryValueInt(int pos,
                     int val,
                     long scn)
Method Detail

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.