Package com.atlassian.confluence.util
Class SingleUseIterable<T>
java.lang.Object
com.atlassian.confluence.util.SingleUseIterable<T>
- All Implemented Interfaces:
Iterable<T>
@ParametersAreNonnullByDefault
public class SingleUseIterable<T>
extends Object
implements Iterable<T>
An
Iterable
wrapper for an iterator. If the iterator is retrieved more than once, an exception
will be thrown.