public class XDateArrayIterator extends XArrayIterator<Date> implements XDateIterator
XArrayIterator
implementing XDateIterator
Constructor and Description |
---|
XDateArrayIterator(Date[] array)
Constructs a new array iterator.
|
XDateArrayIterator(Date[] array,
int offset,
int length)
Constructs a new array iterator.
|
Modifier and Type | Method and Description |
---|---|
long |
nextAsTimestamp()
Gets the next value as a timestamp.
|
array, hasNext, length, next, offset, remove, toFirst
public XDateArrayIterator(Date[] array)
array
- The array to iterate.public XDateArrayIterator(Date[] array, int offset, int length)
array
- The backing array.offset
- The offset into the array.length
- The length the number of elements including the offset to iterate.public final long nextAsTimestamp()
XDateIterator
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.
nextAsTimestamp
in interface XDateIterator
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.