From d16badb3732619e924a8271d42f7781050172775 Mon Sep 17 00:00:00 2001 From: SAIO Date: Mon, 3 Dec 2018 17:02:55 -0800 Subject: [PATCH] cleanup --- .../yieldreturn/YieldAdapterIterator.java | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/main/java/com/zoominfo/util/yieldreturn/YieldAdapterIterator.java b/src/main/java/com/zoominfo/util/yieldreturn/YieldAdapterIterator.java index 0c32cf7..6043ac9 100644 --- a/src/main/java/com/zoominfo/util/yieldreturn/YieldAdapterIterator.java +++ b/src/main/java/com/zoominfo/util/yieldreturn/YieldAdapterIterator.java @@ -1,26 +1,26 @@ -/** - * A "yield return" implementation for Java By Jim Blackler (jimblackler@gmail.com) - * - * http://jimblackler.net/blog/?p=61 - * http://svn.jimblackler.net/jimblackler/trunk/IdeaProjects/YieldAdapter/ - */ -package com.zoominfo.util.yieldreturn; - -import java.io.Closeable; -import java.util.Iterator; - -/** - * A version of a standard Iterator<> used by the yield adapter. The only addition is a close() - * function to clear resources manually when required. - */ -public interface YieldAdapterIterator extends Iterator, Closeable { - - /** - * Because the Yield Adapter starts a separate thread for duration of the collection, this can be - * left open if the calling code only reads part of the collection. If the iterator goes out of - * scope, when it is GCed its finalize() will close the collection thread. However garbage - * collection is sporadic and the VM will not trigger it simply because there is a lack of - * available threads. So, if a lot of partial reads are happening, it will be wise to manually - * close the iterator (which will clear the resources immediately). - */ -} +/** + * A "yield return" implementation for Java By Jim Blackler (jimblackler@gmail.com) + * + * http://jimblackler.net/blog/?p=61 + * http://svn.jimblackler.net/jimblackler/trunk/IdeaProjects/YieldAdapter/ + */ +package com.zoominfo.util.yieldreturn; + +import java.io.Closeable; +import java.util.Iterator; + +/** + * A version of a standard Iterator<> used by the yield adapter. The only addition is a close() + * function to clear resources manually when required. + */ +public interface YieldAdapterIterator extends Iterator, Closeable { + + /** + * Because the Yield Adapter starts a separate thread for duration of the collection, this can be + * left open if the calling code only reads part of the collection. If the iterator goes out of + * scope, when it is GCed its finalize() will close the collection thread. However garbage + * collection is sporadic and the VM will not trigger it simply because there is a lack of + * available threads. So, if a lot of partial reads are happening, it will be wise to manually + * close the iterator (which will clear the resources immediately). + */ +}