asStream method

Stream<E> asStream()

Returns a new Stream with all elements of this collection.

Implementation

Stream<E> asStream() => Stream.fromIterable(this);