com.neeve.lang
Interface XDateIterator

All Superinterfaces:
Iterator<Date>, XIterator<Date>
All Known Implementing Classes:
XDateArrayIterator

public interface XDateIterator
extends XIterator<Date>

A Date based XIterator that provide support for getting values as timestamps.

Since:
3.4

Method Summary
 long nextAsTimestamp()
          Gets the next value as a timestamp.
 
Methods inherited from interface com.neeve.lang.XIterator
toFirst
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextAsTimestamp

long nextAsTimestamp()
Gets the next value as a timestamp.

This call has the same semantics as Iterator.next() except that the iterator implementation may be able to avoid allocating a Date object.

While this method is provided in support of zero garbage iteration it is implementation depend as to whether or not this call is zero garbage.

Unless otherwise documented a null value is returned as -1.

Throws:
NoSuchElementException - iteration has no more elements.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.