net.sf.beanlib.util.concurrent
Class ConcurrentSkipListMap.SubMap.SubMapIter<T>

java.lang.Object
  extended by net.sf.beanlib.util.concurrent.ConcurrentSkipListMap.SubMap.SubMapIter<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
ConcurrentSkipListMap.SubMap.SubMapEntryIterator, ConcurrentSkipListMap.SubMap.SubMapKeyIterator, ConcurrentSkipListMap.SubMap.SubMapValueIterator
Enclosing class:
ConcurrentSkipListMap.SubMap<K,V>

abstract class ConcurrentSkipListMap.SubMap.SubMapIter<T>
extends Object
implements Iterator<T>

Variant of main Iter class to traverse through submaps.


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.SubMap.SubMapIter()
           
 
Method Summary
(package private)  void advance()
           
private  void ascend()
           
private  void descend()
           
 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.SubMap.SubMapIter

ConcurrentSkipListMap.SubMap.SubMapIter()
Method Detail

hasNext

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

advance

final void advance()

ascend

private void ascend()

descend

private void descend()

remove

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