|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.grandcentral.appstats.calculators.RingBufferIterator
Iterates either forwards or backwards over the wrapped buffer in a RingBuffer, starting at the oldest value and working forwards. Like other list iterators, you MUST make sure nothing writes to the buffer while using this Iterator. Will throw a ConcurrentModificationException if it detects that the underlying RingBuffer has been modified.
| Method Summary | |
boolean |
containsType(int type)
|
double |
currentDouble()
apologize for implementation; it's late... |
double |
currentLong()
apologize for implementation; it's late... |
java.lang.Object |
currentObject()
apologize for implementation; it's late... |
int |
getType()
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
void |
moveToEnd()
moves to the end (most recent value) of the buffer |
void |
moveToStart()
moves to the start (oldest value) of the buffer |
double |
nextDouble()
|
long |
nextLong()
|
java.lang.Object |
nextObject()
|
double |
previousDouble()
|
long |
previousLong()
|
java.lang.Object |
previousObject()
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public int getType()
getType in interface BufferIteratorpublic boolean containsType(int type)
containsType in interface BufferIteratorpublic void moveToEnd()
moveToEnd in interface BufferIteratorpublic void moveToStart()
moveToStart in interface BufferIteratorpublic boolean hasNext()
hasNext in interface BufferIteratorpublic boolean hasPrevious()
hasPrevious in interface BufferIteratorpublic int size()
size in interface BufferIteratorpublic long nextLong()
nextLong in interface BufferIteratorpublic long previousLong()
previousLong in interface BufferIteratorpublic double currentLong()
currentLong in interface BufferIteratorcom.grandcentral.appstats.util.BufferIteratorpublic double nextDouble()
nextDouble in interface BufferIteratorpublic double previousDouble()
previousDouble in interface BufferIteratorpublic double currentDouble()
currentDouble in interface BufferIteratorcom.grandcentral.appstats.util.BufferIteratorpublic java.lang.Object nextObject()
nextObject in interface BufferIteratorpublic java.lang.Object previousObject()
previousObject in interface BufferIteratorpublic java.lang.Object currentObject()
currentObject in interface BufferIteratorcom.grandcentral.appstats.util.BufferIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||