public class CloseableSpliteratorImpl<T> extends Object implements CloseableSpliterator<T>
CloseableSpliterator
which provides AutoCloseable.close()
implementations,
and is based on unknown size spliterator (no Spliterator.SIZED
characteristic).Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
Constructor and Description |
---|
CloseableSpliteratorImpl(CloseableIterator<? extends T> iterator) |
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
void |
close() |
void |
closeQuietly()
Close any underlying SQL statements but swallow any SQLExceptions.
|
long |
estimateSize() |
boolean |
tryAdvance(java.util.function.Consumer<? super T> action) |
Spliterator<T> |
trySplit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
public CloseableSpliteratorImpl(CloseableIterator<? extends T> iterator)
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void closeQuietly()
CloseableSpliterator
closeQuietly
in interface CloseableSpliterator<T>
public boolean tryAdvance(java.util.function.Consumer<? super T> action)
tryAdvance
in interface Spliterator<T>
public Spliterator<T> trySplit()
trySplit
in interface Spliterator<T>
public long estimateSize()
estimateSize
in interface Spliterator<T>
public int characteristics()
characteristics
in interface Spliterator<T>
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.