simtools.data.buffer
Class ResizeableBuffer.ResizeableIntegerManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.IntegerManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleIntegerManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableIntegerManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedIntegerManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableIntegerManipulator
extends SimpleBuffer.SimpleIntegerManipulator

This class handles optimization for int objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleIntegerManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableIntegerManipulator()
           
 
Method Summary
 int 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, int value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleIntegerManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableIntegerManipulator

public ResizeableBuffer.ResizeableIntegerManipulator()
Method Detail

getValue

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

setValue

public boolean setValue(long index,
                        int value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleIntegerManipulator
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.IntegerManipulator