/** * Returns the next pair in the time series, if available. * * @return Pair if there's next value, null if series is done. */ public Pair readPair() { next(); if(endOfStream) { return null; } Pair pair = new Pair(storedTimestamp, storedVal); return pair; }
/** * Returns the next pair in the time series, if available. * * @return Pair if there's next value, null if series is done. */ public Pair readPair() { next(); if(endOfStream) { return null; } Pair pair = new Pair(storedTimestamp, storedVal); return pair; }