Package org.assertj.core.util
Class Streams
- java.lang.Object
-
- org.assertj.core.util.Streams
-
public class Streams extends Object
-
-
Constructor Summary
Constructors Constructor Description Streams()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Stream<T>
stream(Iterable<T> iterable)
Returns a sequentialStream
of the contents ofiterable
, delegating toCollection.stream()
if possible.static <T> Stream<T>
stream(Iterator<T> iterator)
-
-
-
Method Detail
-
stream
public static <T> Stream<T> stream(Iterable<T> iterable)
Returns a sequentialStream
of the contents ofiterable
, delegating toCollection.stream()
if possible.- Type Parameters:
T
- the stream type- Parameters:
iterable
- the iterable to built the stream from- Returns:
- the stream built from the given
Iterable
-
-