| 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, waitforEach, spliteratorpublic static <T> @NonNull SingleUseIterable<T> create(Iterator<T> iterator)
iterator - the iterator to wrapCopyright © 2003–2020 Atlassian. All rights reserved.