public final class StreamUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
lazyLimitedStream(Supplier<Stream<T>> streamSupplier,
LongSupplier limitSupplier) |
static <T> Stream<T> |
toStream(Iterator<T> iterator) |
static <T,E extends Exception> |
tryTimes(int times,
ThrowingSupplier<T,E> attempt,
Consumer<Throwable> consumer) |
public static <T> Stream<T> lazyLimitedStream(Supplier<Stream<T>> streamSupplier, LongSupplier limitSupplier)
public static <T,E extends Exception> Optional<T> tryTimes(int times, ThrowingSupplier<T,E> attempt, Consumer<Throwable> consumer)
Copyright © 2025. All rights reserved.