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 |
|---|---|
short |
nextInto(long addr,
int offset)
Copies the next value into the provided memory address
This call has the same semantics as
Iterator.next() except
that the iterator implementation may be able to avoid allocating
a String object. |
short |
nextInto(XString to)
Copies the next value into the provided
XString. |
int |
nextLength()
Returns the length of the next string
Equivalent to invoking
nextLength(true)
|
int |
nextLength(boolean advance)
Returns the length of the next string
|
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 int nextLength(boolean advance)
XStringIteratornextLength in interface XStringIteratorpublic final int nextLength()
XStringIterator
Equivalent to invoking nextLength(true)
nextLength in interface XStringIteratorpublic final short 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.
nextInto in interface XStringIteratorpublic final short nextInto(long addr,
int offset)
XStringIterator
This call has the same semantics as Iterator.next() except
that the iterator implementation may be able to avoid allocating
a String object.
nextInto in interface XStringIteratorCopyright © 2019 N5 Technologies, Inc. All Rights Reserved.