simtools.data.buffer
Class ResizeableBuffer.ResizeableObjectManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.ObjectManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleObjectManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableObjectManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedObjectManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableObjectManipulator
extends SimpleBuffer.SimpleObjectManipulator

This class handles optimization for Object objects.


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

Constructor Detail

ResizeableBuffer.ResizeableObjectManipulator

public ResizeableBuffer.ResizeableObjectManipulator()
Method Detail

getValue

public java.lang.Object getValue(long index)
                          throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleObjectManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        java.lang.Object value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleObjectManipulator
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.ObjectManipulator