MCPcopy Create free account
hub / github.com/apache/commons-lang / stream

Method stream

src/main/java/org/apache/commons/lang3/Streams.java:506–508  ·  view source on GitHub ↗

Converts the given Collection into a FailableStream. This is basically a simplified, reduced version of the Stream class, with the same underlying element stream, except that failable objects, like FailablePredicate, FailableFunction, or {@link FailableConsume

(final Collection<O> stream)

Source from the content-addressed store, hash-verified

504 * converting the stream.
505 */
506 public static <O> FailableStream<O> stream(final Collection<O> stream) {
507 return stream(stream.stream());
508 }
509
510 /**
511 * Converts the given {@link Stream stream} into a {@link FailableStream}.

Callers 15

testStreamMethod · 0.95
testStreamCollectionMethod · 0.95
testToArrayMethod · 0.45
testFindAndInvokeMethod · 0.45
testFindAndInvokeMethod · 0.45
test_LANG_1698Method · 0.45
testOnCollectionMethod · 0.45
testToArrayMethod · 0.45

Calls

no outgoing calls

Tested by 13

testStreamMethod · 0.76
testStreamCollectionMethod · 0.76
testToArrayMethod · 0.36
testFindAndInvokeMethod · 0.36
testFindAndInvokeMethod · 0.36
test_LANG_1698Method · 0.36
testOnCollectionMethod · 0.36
testToArrayMethod · 0.36