simtools.data.buffer
Class SimpleBuffer.SimpleShortManipulator

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

public class SimpleBuffer.SimpleShortManipulator
extends Buffer.ShortManipulator

This class handles optimization for short objects.


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

Field Detail

buffer

protected transient short[] buffer
Constructor Detail

SimpleBuffer.SimpleShortManipulator

public SimpleBuffer.SimpleShortManipulator()
Method Detail

getValue

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

setValue

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

clone

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