public final class ByteArrayIterator extends Object implements Iterator<Byte>
ByteArrayIterator is an Iterator that iterates over a given
byte[].
Calling remove() sets the array to 0 at
the index that corresponds to the last value returned by
next().
| Constructor and Description |
|---|
ByteArrayIterator(byte[] values)
Creates a new ByteArrayIterator that iterates over the given
byte[]. |
ByteArrayIterator(byte[] values,
byte replacement)
Creates a new ByteArrayIterator that iterates over the given
byte[]. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Byte |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ByteArrayIterator(byte[] values)
byte[].
If the given byte[] is null, the new
ByteArrayIterator will behave, as if an empty byte[] has
been given.
values - The byte[] to iterate over.public ByteArrayIterator(byte[] values,
byte replacement)
byte[].
If the given byte[] is null, the new
ByteArrayIterator will behave, as if an empty byte[] has
been given.
values - The byte[] to iterate over.replacement - The value to replace removed values with.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.