net.sf.beanlib.util.concurrent
Class ConcurrentSkipListMap.Iter<T>

java.lang.Object
  extended by net.sf.beanlib.util.concurrent.ConcurrentSkipListMap.Iter<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
ConcurrentSkipListMap.EntryIterator, ConcurrentSkipListMap.KeyIterator, ConcurrentSkipListMap.ValueIterator
Enclosing class:
ConcurrentSkipListMap<K,V>

abstract class ConcurrentSkipListMap.Iter<T>
extends Object
implements Iterator<T>

Base of iterator classes:


Field Summary
(package private)  ConcurrentSkipListMap.Node<K,V> lastReturned
          the last node returned by next()
(package private)  ConcurrentSkipListMap.Node<K,V> next
          the next node to return from next();
(package private)  V nextValue
          Cache of next value field to maintain weak consistency
 
Constructor Summary
ConcurrentSkipListMap.Iter()
          Initializes ascending iterator for entire range.
 
Method Summary
(package private)  void advance()
          Advances next to higher entry.
 boolean hasNext()
           
 void 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.Iterator
next
 

Field Detail

lastReturned

ConcurrentSkipListMap.Node<K,V> lastReturned
the last node returned by next()


next

ConcurrentSkipListMap.Node<K,V> next
the next node to return from next();


nextValue

V nextValue
Cache of next value field to maintain weak consistency

Constructor Detail

ConcurrentSkipListMap.Iter

ConcurrentSkipListMap.Iter()
Initializes ascending iterator for entire range.

Method Detail

hasNext

public final boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

advance

final void advance()
Advances next to higher entry.


remove

public void remove()
Specified by:
remove in interface Iterator<T>