Class NativeTypedArrayIterator<T>
java.lang.Object
org.mozilla.javascript.typedarrays.NativeTypedArrayIterator<T>
- All Implemented Interfaces:
Iterator<T>, ListIterator<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intPosition represents the position of the NEXT elementprivate final NativeTypedArrayView<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
next
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
set
- Specified by:
setin interfaceListIterator<T>
-
remove
-
add
- Specified by:
addin interfaceListIterator<T>
-