org.zkoss.util
Class CollectionsX.ArrayListIterator<E>

java.lang.Object
  extended by org.zkoss.util.CollectionsX.ArrayIterator<E>
      extended by org.zkoss.util.CollectionsX.ArrayListIterator<E>
All Implemented Interfaces:
Iterator<E>, ListIterator<E>
Enclosing class:
CollectionsX

public static class CollectionsX.ArrayListIterator<E>
extends CollectionsX.ArrayIterator<E>
implements ListIterator<E>


Constructor Summary
CollectionsX.ArrayListIterator(E[] ary, int index)
           
CollectionsX.ArrayListIterator(Object[] ary)
           
 
Method Summary
 void add(E o)
           
 boolean hasPrevious()
           
 int nextIndex()
           
 E previous()
           
 int previousIndex()
           
 void set(E o)
           
 
Methods inherited from class org.zkoss.util.CollectionsX.ArrayIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
hasNext, next, remove
 

Constructor Detail

CollectionsX.ArrayListIterator

public CollectionsX.ArrayListIterator(Object[] ary)
Parameters:
ary - an array or null.

CollectionsX.ArrayListIterator

public CollectionsX.ArrayListIterator(E[] ary,
                                      int index)
Parameters:
ary - an array or null.
Method Detail

hasPrevious

public final boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<E>

previous

public final E previous()
Specified by:
previous in interface ListIterator<E>

nextIndex

public final int nextIndex()
Specified by:
nextIndex in interface ListIterator<E>

previousIndex

public final int previousIndex()
Specified by:
previousIndex in interface ListIterator<E>

set

public final void set(E o)
Specified by:
set in interface ListIterator<E>

add

public final void add(E o)
Specified by:
add in interface ListIterator<E>


Copyright © 2014. All rights reserved.