|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.SingleUseIterable<T>
public class SingleUseIterable<T>
An Iterable wrapper for an iterator. If the iterator is retrieved more than once, an exception
will be thrown.
| Method Summary | ||
|---|---|---|
static
|
create(java.util.Iterator<T> iterator)
Convenience static factory because constructors can't infer generic types. |
|
java.util.Iterator<T> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> SingleUseIterable<T> create(java.util.Iterator<T> iterator)
iterator - the iterator to wrap
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||