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
public static class Util.GcIterator<T> extends Object implements Iterator<T>
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 Summary
Constructors Constructor Description GcIterator(Iterator<? extends Reference<T>> iterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
static <T2> Iterable<T2>
over(Iterable<? extends Reference<T2>> referenceIterable)
Creates an iterator over a collection of references.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
forEachRemaining
-
-