|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OneTimeIterable<T>
special purpose restricted version of the Iterable interface. the iterator()
method classes implementing this interface may only be called once, subsequent calls should throw
an exception.
this interface is part of the problem solution that in the standard JDK the Iterables are
supposed to produce any number of Iterators. see also AbstractOneTimeIterable.
| Method Summary | |
|---|---|
Iterator<T> |
iterator()
the first time called, returns an iterator over a set of elements of type T. subsequent calls should result in an IllegalStateException. |
| Method Detail |
|---|
Iterator<T> iterator()
throws IllegalStateException
IllegalStateException.
iterator in interface Iterable<T>IllegalStateException - if called more than once.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||