Lines Matching refs:iterator
60 * <p>The iterators returned by this class's {@code iterator} method are
61 * <i>fail-fast</i>: if the set is modified at any time after the iterator is
62 * created, in any way except through the iterator's own {@code remove}
63 * method, the iterator will throw a {@link ConcurrentModificationException}.
64 * Thus, in the face of concurrent modification, the iterator fails quickly
68 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
176 * Returns an iterator over the elements in this set in ascending order.
178 * @return an iterator over the elements in this set in ascending order
180 public Iterator<E> iterator() {
181 return m.navigableKeySet().iterator();
185 * Returns an iterator over the elements in this set in descending order.
187 * @return an iterator over the elements in this set in descending order
191 return m.descendingKeySet().iterator();