Class NativeTypedArrayIterator<T>
- java.lang.Object
-
- org.htmlunit.corejs.javascript.typedarrays.NativeTypedArrayIterator<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,java.util.ListIterator<T>
public class NativeTypedArrayIterator<T> extends java.lang.Object implements java.util.ListIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description private intlastPositionprivate intpositionPosition represents the position of the NEXT elementprivate NativeTypedArrayView<T>view
-
Constructor Summary
Constructors Constructor Description NativeTypedArrayIterator(NativeTypedArrayView<T> view, int start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T t)booleanhasNext()booleanhasPrevious()Tnext()intnextIndex()Tprevious()intpreviousIndex()voidremove()voidset(T t)
-
-
-
Field Detail
-
view
private final NativeTypedArrayView<T> view
-
position
private int position
Position represents the position of the NEXT element
-
lastPosition
private int lastPosition
-
-
Constructor Detail
-
NativeTypedArrayIterator
NativeTypedArrayIterator(NativeTypedArrayView<T> view, int start)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfacejava.util.ListIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<T>
-
next
public T next()
-
remove
public void remove()
-
-