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:
add
in interfaceListIterator<E>
- Parameters:
e
-- Throws:
UnsupportedOperationException
- See Also:
ListIterator.add(java.lang.Object)
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<E>
- Specified by:
hasNext
in interfaceListIterator<E>
- See Also:
ListIterator.hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<E>
- See Also:
ListIterator.hasPrevious()
-
next
public E next()
- Specified by:
next
in interfaceIterator<E>
- Specified by:
next
in interfaceListIterator<E>
- See Also:
ListIterator.next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<E>
- See Also:
ListIterator.nextIndex()
-
previous
public E previous()
- Specified by:
previous
in interfaceListIterator<E>
- See Also:
ListIterator.previous()
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<E>
- See Also:
ListIterator.previousIndex()
-
remove
public void remove() throws UnsupportedOperationException
- Specified by:
remove
in interfaceIterator<E>
- Specified by:
remove
in interfaceListIterator<E>
- Throws:
UnsupportedOperationException
- See Also:
ListIterator.remove()
-
set
public void set(E e)
- Specified by:
set
in interfaceListIterator<E>
- Parameters:
e
-- See Also:
ListIterator.set(java.lang.Object)
-
-