Home | History | Annotate | Download | only in file

Lines Matching defs:iterator

28 import java.util.Iterator;
39 * Iterator}; invoking the {@link #iterator iterator} method to obtain a second
40 * or subsequent iterator throws {@code IllegalStateException}. </b>
42 * <p> An important property of the directory stream's {@code Iterator} is that
43 * its {@link Iterator#hasNext() hasNext} method is guaranteed to read-ahead by
47 * because the stream has been {@link #close closed}. The {@code Iterator} does
48 * not support the {@link Iterator#remove remove} operation.
65 * using the {@code Iterator}, behaves as if the end of stream has been reached.
66 * Due to read-ahead, the {@code Iterator} may return one or more elements
73 * If a thread is blocked on the directory stream's iterator reading from the
78 * causes the {@code Iterator}'s {@code hasNext} or {@code next} methods to
86 * <p> The elements returned by the iterator are in no specific order. Some file
89 * iterator.
91 * <p> The iterator is <i>weakly consistent</i>. It is thread safe but does not
112 * @param <T> The type of element returned by the iterator
149 * Returns the iterator associated with this {@code DirectoryStream}.
151 * @return the iterator associated with this {@code DirectoryStream}
154 * if this directory stream is closed or the iterator has already
158 Iterator<T> iterator();