public final class Iterators extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
toList(Iterator<T> iterator)
Returns a list that contains the sequence defined by the given Iterator.
|
static <T> Stream<T> |
toStream(Iterable<T> iterable)
Returns a stream that produces the sequence defined by the given Iterable.
|
static <T> Stream<T> |
toStream(Iterator<T> iterator)
Returns a stream that produces the sequence defined by the given Iterator.
|
Copyright © 2025 The Cornutum Project. All rights reserved.