simtools.data.buffer
Class ResizeableBuffer.ResizeableLongManipulator

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

public class ResizeableBuffer.ResizeableLongManipulator
extends SimpleBuffer.SimpleLongManipulator

This class handles optimization for long objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleLongManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableLongManipulator()
           
 
Method Summary
 long getValue(long index)
           
 void setSlice(long min, long max)
          Use this function to optimize the buffer on the given index range
 boolean setValue(long index, long value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleLongManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableLongManipulator

public ResizeableBuffer.ResizeableLongManipulator()
Method Detail

getValue

public long getValue(long index)
              throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleLongManipulator
Throws:
DataException

setValue

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

setSlice

public void setSlice(long min,
                     long max)
Use this function to optimize the buffer on the given index range

Overrides:
setSlice in class Buffer.LongManipulator