Package | Description |
---|---|
org.infinispan.commons.util |
Commons package providing various utility classes
|
Modifier and Type | Class and Description |
---|---|
class |
CloseableSpliteratorMapper<E,S>
A spliterator that maps each value to the output of the Function that is also closeable.
|
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
|
Modifier and Type | Method and Description |
---|---|
static <E> Stream<E> |
Closeables.stream(CloseableSpliterator<E> spliterator,
boolean parallel)
Creates a stream that when closed will also close the underlying spliterator
|
Constructor and Description |
---|
CloseableSpliteratorMapper(CloseableSpliterator<E> spliterator,
Function<? super E,? extends S> mapper) |
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.