Class NativeTypedArrayIterator<T>
java.lang.Object
org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayIterator<T>
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
Position represents the position of the NEXT elementprivate final NativeTypedArrayView
<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
view
-
position
private int positionPosition represents the position of the NEXT element -
lastPosition
private int lastPosition
-
-
Constructor Details
-
NativeTypedArrayIterator
NativeTypedArrayIterator(NativeTypedArrayView<T> view, int start)
-
-
Method Details
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T>
-
next
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
set
- Specified by:
set
in interfaceListIterator<T>
-
remove
public void remove() -
add
- Specified by:
add
in interfaceListIterator<T>
-