Modifier and Type | Method and Description |
---|---|
static <T> @NonNull SingleUseIterable<T> |
create(Iterator<T> iterator)
Convenience static factory because constructors can't infer generic types.
|
@NonNull Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static <T> @NonNull SingleUseIterable<T> create(Iterator<T> iterator)
iterator
- the iterator to wrapCopyright © 2003–2021 Atlassian. All rights reserved.