public final class StreamUtils extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
StreamUtils()
Utility class
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Collector<java.lang.String,?,java.lang.String> |
toHtmlList()
Creates a new Collector that collects the items and returns them as HTML unordered list.
|
static <T> java.util.stream.Stream<T> |
toStream(java.lang.Iterable<T> iterable)
Returns a sequential
Stream with the iterable as its source. |
private StreamUtils()
public static <T> java.util.stream.Stream<T> toStream(java.lang.Iterable<T> iterable)
Stream with the iterable as its source.T - The element type to iterate overiterable - The iterablepublic static java.util.stream.Collector<java.lang.String,?,java.lang.String> toHtmlList()