com.sun.jini.outrigger
Class FastList.FastListIteratorImpl

java.lang.Object
  extended by com.sun.jini.outrigger.FastList.FastListIteratorImpl
All Implemented Interfaces:
Iterator<T>
Enclosing class:
FastList<T extends FastList.Node>

private class FastList.FastListIteratorImpl
extends Object
implements Iterator<T>


Field Summary
private  Iterator<T> baseIterator
           
private  long index
           
private  T next
           
private  T removable
           
 
Constructor Summary
private FastList.FastListIteratorImpl()
           
 
Method Summary
private  T getNext()
          Find the next eligible node, null if there is none. skip over removed nodes, and stop on reaching a Node that was added after this scan started.
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

removable

private T extends FastList.Node removable

next

private T extends FastList.Node next

index

private final long index

baseIterator

private final Iterator<T extends FastList.Node> baseIterator
Constructor Detail

FastList.FastListIteratorImpl

private FastList.FastListIteratorImpl()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T extends FastList.Node>

next

public T next()
Specified by:
next in interface Iterator<T extends FastList.Node>

remove

public void remove()
Specified by:
remove in interface Iterator<T extends FastList.Node>

getNext

private T getNext()
Find the next eligible node, null if there is none. skip over removed nodes, and stop on reaching a Node that was added after this scan started.

Returns:
The next eligible node, null if there is none.


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.