net.sf.beanlib.util.concurrent
Class ConcurrentSkipListMap.SubMap.SubMapIter<T>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ConcurrentSkipListMap.SubMap.SubMapIter
ConcurrentSkipListMap.SubMap.SubMapIter()
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>