Package | Description |
---|---|
org.infinispan.commons.util |
Commons package providing various utility classes
|
Modifier and Type | Method and Description |
---|---|
CloseableSpliterator<E> |
CloseableIteratorSetAdapter.spliterator() |
CloseableSpliterator<E> |
CloseableIteratorSet.spliterator() |
CloseableSpliterator<E> |
CloseableIteratorCollectionAdapter.spliterator() |
CloseableSpliterator<E> |
CloseableIteratorCollection.spliterator() |
static <E> CloseableSpliterator<E> |
Closeables.spliterator(CloseableIterator<? extends E> iterator,
long size,
int characteristics)
Takes a provided closeable iterator and wraps it appropriately so it can be used as a closeable spliterator that
will close the iterator when the spliterator is closed.
|
static <T> CloseableSpliterator<T> |
Closeables.spliterator(Spliterator<T> spliterator)
Creates a closeable spliterator from the given spliterator that does nothing when close is called.
|
static <R> CloseableSpliterator<R> |
Closeables.spliterator(Stream<R> stream)
Creates a closeable spliterator that when closed will close the underlying stream as well
|
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.