simtools.data.buffer
Class SimpleBuffer.SimpleIntegerManipulator

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

public class SimpleBuffer.SimpleIntegerManipulator
extends Buffer.IntegerManipulator

This class handles optimization for int objects.


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

Field Detail

buffer

protected transient int[] buffer
Constructor Detail

SimpleBuffer.SimpleIntegerManipulator

public SimpleBuffer.SimpleIntegerManipulator()
Method Detail

getValue

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

setValue

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

clone

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