krati.core.array.entry
Class EntryValueShort

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

public class EntryValueShort
extends EntryValue


Field Summary
 short val
           
 
Fields inherited from class krati.core.array.entry.EntryValue
pos, scn
 
Constructor Summary
EntryValueShort(int pos, short val, long scn)
           
 
Method Summary
 boolean equals(Object o)
           
 short getValue()
           
 int hashCode()
           
 void reinit(int pos, short 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 short val
Constructor Detail

EntryValueShort

public EntryValueShort(int pos,
                       short val,
                       long scn)
Method Detail

reinit

public final void reinit(int pos,
                         short val,
                         long scn)

getValue

public final short 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.