public final class StreamUtils extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
StreamUtils()
Utility class
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.stream.Stream<T> |
reversedStream(java.util.List<T> list)
Creqates a stream iterating the list in reversed order
|
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 <T> java.util.stream.Stream<T> reversedStream(java.util.List<T> list)
T
- the type of elements in the listlist
- the list to iterate overpublic static java.util.stream.Collector<java.lang.String,?,java.lang.String> toHtmlList()