simtools.data.buffer
Class ResizeableBuffer.ResizeableLongManipulator
java.lang.Object
simtools.data.buffer.Buffer.LongManipulator
simtools.data.buffer.SimpleBuffer.SimpleLongManipulator
simtools.data.buffer.ResizeableBuffer.ResizeableLongManipulator
- All Implemented Interfaces:
- java.lang.Cloneable, Buffer.Manipulator
- Direct Known Subclasses:
- DelayedBuffer.DelayedLongManipulator
- Enclosing class:
- ResizeableBuffer
public class ResizeableBuffer.ResizeableLongManipulator
- extends SimpleBuffer.SimpleLongManipulator
This class handles optimization for long objects.
Method Summary |
long |
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,
long value)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResizeableBuffer.ResizeableLongManipulator
public ResizeableBuffer.ResizeableLongManipulator()
getValue
public long getValue(long index)
throws DataException
- Overrides:
getValue
in class SimpleBuffer.SimpleLongManipulator
- Throws:
DataException
setValue
public boolean setValue(long index,
long value)
throws DataException
- Overrides:
setValue
in class SimpleBuffer.SimpleLongManipulator
- 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.LongManipulator