|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.DeviceLogIterator
public class DeviceLogIterator
DeviceLogIterator iterates over DevicePackets stored in a DeviceLog. NOTE: This implementation is not thread-safe!
| Constructor Summary | |
|---|---|
DeviceLogIterator(DeviceLog log)
Create iterator, passing in DeviceLog on which to iterate. |
|
DeviceLogIterator(DeviceLog log,
long start)
Create iterator, passing in DeviceLog on which to iterate and specify a start time so that a binary search can be done (by getEntryIndex) to quickly find the first record. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if DeviceLog has more packets. |
java.lang.Object |
next()
Returns next DevicePacket from DeviceLog. |
void |
remove()
Not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceLogIterator(DeviceLog log,
long start)
public DeviceLogIterator(DeviceLog log)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementException
public void remove()
throws java.lang.UnsupportedOperationException,
java.lang.IllegalStateException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException
java.lang.IllegalStateException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||