Package | Description |
---|---|
org.apache.commons.lang3.function |
Provides functional interfaces to complement those in
java.lang.function and utilities for working with Java
8 lambdas. |
org.apache.commons.lang3.stream |
Provides utility classes to complement those in
java.util.stream . |
Modifier and Type | Method and Description |
---|---|
static <E> Streams.FailableStream<E> |
Failable.stream(Collection<E> collection)
Converts the given collection into a
Streams.FailableStream . |
static <T> Streams.FailableStream<T> |
Failable.stream(Stream<T> stream)
Converts the given stream into a
Streams.FailableStream . |
Modifier and Type | Method and Description |
---|---|
Streams.FailableStream<O> |
Streams.FailableStream.filter(FailablePredicate<O,?> predicate)
Returns a FailableStream consisting of the elements of this stream that match the given FailablePredicate.
|
<R> Streams.FailableStream<R> |
Streams.FailableStream.map(FailableFunction<O,R,?> mapper)
Returns a stream consisting of the results of applying the given function to the elements of this stream.
|
static <O> Streams.FailableStream<O> |
Streams.stream(Collection<O> stream)
Converts the given
Collection into a Streams.FailableStream . |
static <O> Streams.FailableStream<O> |
Streams.stream(Stream<O> stream)
Converts the given
stream into a Streams.FailableStream . |
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.