public class Streams extends Object
| Constructor and Description |
|---|
Streams() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
stream(Iterable<T> iterable)
Returns a sequential
Stream of the contents of iterable, delegating to Collection.stream() if possible. |
static <T> Stream<T> |
stream(Iterator<T> iterator) |
public static <T> Stream<T> stream(Iterable<T> iterable)
Stream of the contents of iterable, delegating to Collection.stream() if possible.T - the stream typeiterable - the iterable to built the stream fromIterableCopyright © 2014–2019 AssertJ. All rights reserved.