Arrays.asList( array ).iterator();
@Deprecated public class ArrayIterator<T> extends Object implements Iterator<T>
Constructor and Description |
---|
ArrayIterator(T[] array)
Deprecated.
Constructs an iterator over the members of an array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
T |
next()
Deprecated.
|
void |
remove()
Deprecated.
Not supported.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ArrayIterator(T[] array)
array
- Must be an array.public T next() throws NoSuchElementException
next
in interface Iterator<T>
NoSuchElementException
public void remove()
remove
in interface Iterator<T>
UnsupportedOperationException
- Always.Licenced under the Apache License, Version 2.0