groovyx.gpars.extra166y
Class ParallelArray.ListIter

java.lang.Object
  extended by groovyx.gpars.extra166y.ParallelArray.ListIter
All Implemented Interfaces:
java.util.Iterator<T>, java.util.ListIterator<T>
Enclosing class:
ParallelArray<T>

final class ParallelArray.ListIter
extends java.lang.Object
implements java.util.ListIterator<T>


Field Summary
(package private)  T[] arr
           
(package private)  int cursor
           
(package private)  int hi
           
(package private)  int lastRet
           
 
Constructor Summary
ParallelArray.ListIter(int lo)
           
 
Method Summary
 void add(T e)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 T next()
           
 int nextIndex()
           
 T previous()
           
 int previousIndex()
           
 void remove()
           
 void set(T e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cursor

int cursor

lastRet

int lastRet

arr

T[] arr

hi

int hi
Constructor Detail

ParallelArray.ListIter

ParallelArray.ListIter(int lo)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>
Specified by:
hasNext in interface java.util.ListIterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>
Specified by:
next in interface java.util.ListIterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>
Specified by:
remove in interface java.util.ListIterator<T>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator<T>

previous

public T previous()
Specified by:
previous in interface java.util.ListIterator<T>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator<T>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator<T>

set

public void set(T e)
Specified by:
set in interface java.util.ListIterator<T>

add

public void add(T e)
Specified by:
add in interface java.util.ListIterator<T>

Copyright © 2008–2012 Václav Pech. All Rights Reserved.