Package one.microstream.util.iterables
Class ArrayListIterator<E>
- java.lang.Object
-
- one.microstream.util.iterables.ArrayListIterator<E>
-
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
public final class ArrayListIterator<E> extends Object implements ListIterator<E>
-
-
Constructor Summary
Constructors Constructor Description ArrayListIterator(E[] array)ArrayListIterator(E[] array, int index)
-
-
-
Method Detail
-
add
public void add(E e) throws UnsupportedOperationException
- Specified by:
addin interfaceListIterator<E>- Parameters:
e-- Throws:
UnsupportedOperationException- See Also:
ListIterator.add(java.lang.Object)
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- See Also:
ListIterator.hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<E>- See Also:
ListIterator.hasPrevious()
-
next
public E next()
- Specified by:
nextin interfaceIterator<E>- Specified by:
nextin interfaceListIterator<E>- See Also:
ListIterator.next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<E>- See Also:
ListIterator.nextIndex()
-
previous
public E previous()
- Specified by:
previousin interfaceListIterator<E>- See Also:
ListIterator.previous()
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<E>- See Also:
ListIterator.previousIndex()
-
remove
public void remove() throws UnsupportedOperationException- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>- Throws:
UnsupportedOperationException- See Also:
ListIterator.remove()
-
set
public void set(E e)
- Specified by:
setin interfaceListIterator<E>- Parameters:
e-- See Also:
ListIterator.set(java.lang.Object)
-
-