simtools.data.buffer
Class SimpleBuffer.SimpleObjectManipulator

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

public class SimpleBuffer.SimpleObjectManipulator
extends Buffer.ObjectManipulator

This class handles optimization for Object objects.


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

Field Detail

buffer

protected transient java.lang.Object[] buffer
Constructor Detail

SimpleBuffer.SimpleObjectManipulator

public SimpleBuffer.SimpleObjectManipulator()
Method Detail

getValue

public java.lang.Object getValue(long index)
                          throws DataException
Specified by:
getValue in class Buffer.ObjectManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        java.lang.Object value)
                 throws DataException
Overrides:
setValue in class Buffer.ObjectManipulator
Throws:
DataException

clone

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