Package mondrian.olap
Class Util.GcIterator<T>
java.lang.Object
mondrian.olap.Util.GcIterator<T>
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- Util
Garbage-collecting iterator. Iterates over a collection of references,
and if any of the references has been garbage-collected, removes it from
the collection.
-
Constructor Details
-
GcIterator
-
-
Method Details
-
over
Creates an iterator over a collection of references.- Type Parameters:
T2
- element type- Parameters:
referenceIterable
- Collection of references- Returns:
- iterable over collection
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-