Package Array.streamerOrigin
Class OriginIterator
java.lang.Object
Array.streamerOrigin.OriginIterator
- All Implemented Interfaces:
Iterator<GpsData>
,ListIterator<GpsData>
- Direct Known Subclasses:
GPSOriginIterator
,StreamerDataIterator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmovePreceeding
(long time) Move to a the last data unit that is at or immediately before the given time.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
-
Constructor Details
-
OriginIterator
-
-
Method Details
-
movePreceeding
Move to a the last data unit that is at or immediately before the given time. Position the cursor such that a call to next() will return the subsequent unit.Very useful in interpolating positions when two values which bracket a given time are required.
- Parameters:
time
- time in milliseconds.- Returns:
- Gps unit at or immediately before that time.
-