Class OriginIterator

java.lang.Object
Array.streamerOrigin.OriginIterator
All Implemented Interfaces:
Iterator<GpsData>, ListIterator<GpsData>
Direct Known Subclasses:
GPSOriginIterator, StreamerDataIterator

public abstract class OriginIterator extends Object implements ListIterator<GpsData>
  • Constructor Details

    • OriginIterator

      public OriginIterator(Streamer streamer)
  • Method Details

    • movePreceeding

      public GpsData movePreceeding(long time)
      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.