krati.core.array.entry
Class EntryValueLong

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

public class EntryValueLong
extends EntryValue

EntryValueLong.

Author:
jwu

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

EntryValueLong

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

reinit

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

getValue

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