simtools.data.buffer
Class SimpleBuffer.SimpleLongManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.LongManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleLongManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
ResizeableBuffer.ResizeableLongManipulator
Enclosing class:
SimpleBuffer

public class SimpleBuffer.SimpleLongManipulator
extends Buffer.LongManipulator

This class handles optimization for long objects.


Field Summary
protected  long[] buffer
           
 
Constructor Summary
SimpleBuffer.SimpleLongManipulator()
           
 
Method Summary
 java.lang.Object clone()
           
 long getValue(long index)
           
 boolean setValue(long index, long value)
           
 
Methods inherited from class simtools.data.buffer.Buffer.LongManipulator
setSlice
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected transient long[] buffer
Constructor Detail

SimpleBuffer.SimpleLongManipulator

public SimpleBuffer.SimpleLongManipulator()
Method Detail

getValue

public long getValue(long index)
              throws DataException
Specified by:
getValue in class Buffer.LongManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        long value)
                 throws DataException
Overrides:
setValue in class Buffer.LongManipulator
Throws:
DataException

clone

public java.lang.Object clone()
Overrides:
clone in class Buffer.LongManipulator