Top Constructors Methods
org.assertj.core.util

public Class Streams

extends Object
Class Inheritance
Imports
java.util.Collection, .Iterator, .Spliterators, java.util.stream.Stream, .StreamSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <
the stream type
T
>
Stream<T>

Returns:

the stream built from the given Iterable
stream
(Iterable<T>
the iterable to built the stream from
iterable
)

Returns a sequential Stream of the contents of iterable, delegating to Collection#stream if possible.

public static <T> Stream<T>
stream(Iterator<T> iterator)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Streamsback to summary
public Streams()

Method Detail

streamback to summary
public static <T> Stream<T> stream(Iterable<T> iterable)

Returns a sequential Stream of the contents of iterable, delegating to Collection#stream if possible.

Parameters
<T>
the stream type
iterable:Iterable<T>

the iterable to built the stream from

Returns:Stream<T>

the stream built from the given Iterable

streamback to summary
public static <T> Stream<T> stream(Iterator<T> iterator)