com.sun.jini.outrigger
Class FastList.FastListIteratorImpl
java.lang.Object
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>
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 |
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
FastList.FastListIteratorImpl
private FastList.FastListIteratorImpl()
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.