public class XStringArrayIterator extends XArrayIterator<String> implements XStringIterator
XArrayIterator implementing XStringIterator| Constructor and Description |
|---|
XStringArrayIterator(String[] array)
Constructs a new array iterator.
|
XStringArrayIterator(String[] array,
int offset,
int length)
Constructs a new array iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
nextInto(XString to)
Copies the next value into the provided
XString. |
array, hasNext, length, next, offset, remove, toFirstequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removepublic XStringArrayIterator(String[] array)
array - The array to iterate.public XStringArrayIterator(String[] 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 void nextInto(XString to)
XStringIteratorXString.
This call has the same semantics as Iterator.next() except
that the iterator implementation may be able to avoid allocating
a String 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.
nextInto in interface XStringIteratorCopyright © 2019 Neeve Research, LLC. All Rights Reserved.