Package | Description |
---|---|
org.apache.commons.io.function |
Provides IO-only related functional interfaces for lambda expressions and method references.
|
Modifier and Type | Method and Description |
---|---|
static <T> IOStream<T> |
IOStream.adapt(Stream<T> stream)
Constructs a new IOStream for the given Stream.
|
default IOStream<T> |
IOStream.distinct()
Like
Stream.distinct() . |
static <T> IOStream<T> |
IOStream.empty()
This class' version of
Stream.empty() . |
default IOStream<T> |
IOStream.filter(IOPredicate<? super T> predicate)
|
default <R> IOStream<R> |
IOStream.flatMap(IOFunction<? super T,? extends IOStream<? extends R>> mapper)
|
static <T> IOStream<T> |
IOStream.iterate(T seed,
IOUnaryOperator<T> f)
Like
Stream.iterate(Object, UnaryOperator) but for IO. |
default IOStream<T> |
IOStream.limit(long maxSize)
Like
Stream.limit(long) . |
default <R> IOStream<R> |
IOStream.map(IOFunction<? super T,? extends R> mapper)
|
static <T> IOStream<T> |
IOStream.of(Iterable<T> values)
Null-safe version of
StreamSupport.stream(java.util.Spliterator, boolean) . |
static <T> IOStream<T> |
IOStream.of(T... values)
Null-safe version of
Stream.of(Object[]) for an IO stream. |
static <T> IOStream<T> |
IOStream.of(T t)
Returns a sequential
IOStreamImpl containing a single element. |
default IOStream<T> |
IOStream.peek(IOConsumer<? super T> action)
|
default IOStream<T> |
IOStream.skip(long n)
Like
Stream.skip(long) . |
default IOStream<T> |
IOStream.sorted()
Like
Stream.sorted() . |
default IOStream<T> |
IOStream.sorted(IOComparator<? super T> comparator)
|
Modifier and Type | Method and Description |
---|---|
default <R> IOStream<R> |
IOStream.flatMap(IOFunction<? super T,? extends IOStream<? extends R>> mapper)
|
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.