Package com.atlassian.confluence.util
Class SingleUseIterable<T>
- java.lang.Object
-
- com.atlassian.confluence.util.SingleUseIterable<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> @NonNull SingleUseIterable<T>
create(Iterator<T> iterator)
Convenience static factory because constructors can't infer generic types.@NonNull Iterator<T>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
create
public static <T> @NonNull SingleUseIterable<T> create(Iterator<T> iterator)
Convenience static factory because constructors can't infer generic types.- Parameters:
iterator
- the iterator to wrap- Returns:
- the appropriately typed SingleUseIterator
-
-