List of utility methods to do Stream of
Stream | stream(Class stream return Arrays.stream(clazz.getEnumConstants());
|
Stream | stream(Collection stream return Optional.ofNullable(collection).orElseGet(Collections::emptyList).stream();
|
Stream | stream(Enumeration stream return stream(enumeration);
|
Stream | stream(final Iterator stream return stream(() -> iterator);
|
Stream | stream(Iterable extends A> iterable) stream return StreamSupport.stream((Spliterator<A>) iterable.spliterator(), false);
|
Stream | stream(Iterable stream return stream(input, false);
|
Stream | stream(Iterable Converts an Iterable into a Stream. return StreamSupport.stream(iterable.spliterator(), false);
|
Stream | stream(Iterable stream Spliterator<T> spliterator = iterable.spliterator();
return StreamSupport.stream(spliterator, false);
|
Stream | stream(Iterable it) Create a stream from an iterable assertThat(StreamUtils.stream(Arrays.asList(1,2,3)) .collect(Collectors.toList()), equalTo(Arrays.asList(1,2,3))); return StreamSupport.stream(it.spliterator(), false);
|
Stream | stream(Iterator stream return stream(iterator, -1);
|