org.aspectbench.tm.runtime.internal
Class ReferenceIterator

java.lang.Object
  extended byorg.aspectbench.tm.runtime.internal.ReferenceIterator
All Implemented Interfaces:
java.util.Iterator

public class ReferenceIterator
extends java.lang.Object
implements java.util.Iterator

A wrapper around an iterator of one of the *IdentityMap keysets. It assumes the underlying collection consists of MyWeakRef objects, and dereferences each one before returning it in the next() method.

Author:
Pavel Avgustinov

Constructor Summary
ReferenceIterator(java.util.Iterator it)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceIterator

public ReferenceIterator(java.util.Iterator it)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator