public class ArrayIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
ArrayIterator(T[] elements) |
ArrayIterator(T[] elements,
int firstElement) |
ArrayIterator(T[] elements,
int firstElement,
int lastElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove()
Unsupported.
|
public ArrayIterator(T[] elements)
public ArrayIterator(T[] elements, int firstElement)
public ArrayIterator(T[] elements, int firstElement, int lastElement)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<T>java.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException - alwaysCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html