public final class StreamUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
repeat(T element,
int numberOfTimes)
Creates a stream with the requested size.
|
public static <T> Stream<T> repeat(T element, int numberOfTimes)
element.T - element typeelement - the element to repeatnumberOfTimes - number of times the stream should have the elementCopyright © 2016–2023 The AuthMe Team. All rights reserved.