Searched defs:iterator (Results 1 - 25 of 58) sorted by relevance

123

/libcore/luni/src/main/java/java/lang/
H A DIterable.java34 Iterator<T> iterator(); method in interface:Iterable
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAbstractSetTest.java32 public Iterator iterator() { method in class:OldAbstractSetTest.Mock_AbstractSet
68 public Iterator iterator() {
/libcore/luni/src/main/java/java/util/
H A DAbstractSequentialList.java43 Iterator<? extends E> colIt = collection.iterator();
61 public Iterator<E> iterator() { method in class:AbstractSequentialList
H A DAbstractCollection.java25 * iterator()} and {@code size()} to create an immutable collection. To create a
74 Iterator<? extends E> it = collection.iterator();
86 * remove} method on each element. If the iterator does not support removal
93 * it the iterator does not support removing elements from
95 * @see #iterator
100 Iterator<E> it = iterator();
112 * the iterator until the element is found. If {@code object == null} then
113 * each element {@code e} returned by the iterator is compared with the test
127 Iterator<E> it = iterator();
147 * {@code Collection}. If one element returned by the iterator i
198 public abstract Iterator<E> iterator(); method in class:AbstractCollection
[all...]
H A DCollection.java196 * returned by the iterator is not defined. Only if the instance of the
199 * @return an iterator for accessing the {@code Collection} contents.
201 public Iterator<E> iterator(); method in interface:Collection
284 * array in the same order as an iterator would return them.
302 * array in the same order as an iterator would return them.
H A DSet.java124 * Returns an iterator on the elements of this set. The elements are
127 * @return an iterator on the elements of this set.
130 public Iterator<E> iterator(); method in interface:Set
H A DHashSet.java160 public Iterator<E> iterator() { method in class:HashSet
161 return backingMap.keySet().iterator();
H A DNavigableSet.java131 * Returns an iterator over the elements in this set, in ascending order.
133 * @return an iterator over the elements in this set, in ascending order
135 Iterator<E> iterator(); method in interface:NavigableSet
142 * through the iterator's own {@code remove} operation), the results of
155 * Returns an iterator over the elements in this set, in descending order.
156 * Equivalent in effect to {@code descendingSet().iterator()}.
158 * @return an iterator over the elements in this set, in descending order
H A DServiceLoader.java67 * iterator: construction of the iterator itself does not instantiate any of the providers.
97 * Returns an iterator over all the service providers offered by this service loader.
100 * <p>Each iterator will return new instances of the classes it iterates over, so callers
104 * <p>The returned iterator does not support {@code remove}.
106 public Iterator<S> iterator() { method in class:ServiceLoader
H A DDeque.java530 * Returns an iterator over the elements in this deque in proper sequence.
533 * @return an iterator over the elements in this deque in proper sequence
535 Iterator<E> iterator(); method in interface:Deque
538 * Returns an iterator over the elements in this deque in reverse
542 * @return an iterator over the elements in this deque in reverse
H A DHugeEnumSet.java241 public Iterator<E> iterator() { method in class:HugeEnumSet
H A DList.java71 * the collection's iterator.
94 * collection's iterator.
195 * Returns an iterator on the elements of this {@code List}. The elements are
198 * @return an iterator on the elements of this {@code List}.
201 public Iterator<E> iterator(); method in interface:List
215 * Returns a {@code List} iterator on the elements of this {@code List}. The elements are
218 * @return a {@code List} iterator on the elements of this {@code List}
225 * Returns a list iterator on the elements of this {@code List}. The elements are
231 * @return a list iterator on the elements of this {@code List}.
H A DMiniEnumSet.java92 public Iterator<E> iterator() { method in class:MiniEnumSet
/libcore/luni/src/main/java/java/text/
H A DCollationElementIterator.java40 * and 'e', the iterator returns two collation elements for the single character
49 * must be called to reset the iterator. If a change of direction is done without one
55 * This constant is returned by the iterator in the methods
64 CollationElementIterator(CollationElementIteratorICU iterator) { argument
65 this.icuIterator = iterator;
137 * If the {@code RuleBasedCollator} used by this iterator has had its
138 * attributes changed, calling {@code reset()} reinitializes the iterator to
157 * Points the iterator at the collation element associated with the
163 * sequence that maps to a single collation element then the iterator is
169 * decomposable range of source text, the iterator ma
[all...]
H A DBreakIterator.java52 * thinks of it as one character.) This iterator allows various processes
56 * </ul> {@code BreakIterator}'s interface follows an "iterator" model (hence
64 * <li>The current position of the iterator is always a boundary position
65 * (random- access methods move the iterator to the nearest boundary position
76 * <li>The client can change the position of an iterator, or the text it
78 * different behavior, he must instantiate a new iterator.</li>
91 * one break iterator for the whole document (or whatever stretch of text you're
210 * The iterator returned by {@code BreakIterator.getWordInstance()} is unique in
212 * the thing being iterated over. That is, a sentence-break iterator returns
214 * next. With the word-break iterator, th
245 BreakIterator(NativeBreakIterator iterator) argument
[all...]
H A DRuleBasedBreakIterator.java30 RuleBasedBreakIterator(NativeBreakIterator iterator) { argument
31 super(iterator);
/libcore/luni/src/main/java/libcore/io/
H A DHeapBufferIterator.java80 * Returns a new iterator over {@code buffer}, starting at {@code offset} and continuing for
83 public static BufferIterator iterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { method in class:HeapBufferIterator
/libcore/luni/src/test/java/libcore/java/text/
H A DBreakIteratorTest.java24 BreakIterator iterator; field in class:BreakIteratorTest
29 iterator = BreakIterator.getCharacterInstance(Locale.US);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java77 * @param iterator
81 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) { argument
83 while (iterator.getIndex() != iterator.getEndIndex()) {
84 int start = iterator.getRunStart();
85 int end = iterator.getRunLimit();
87 Iterator<Attribute> it = iterator.getAttributes().keySet().iterator();
90 Object value = iterator.getAttribute(attribute);
97 iterator
[all...]
H A DBreakIteratorTest.java31 BreakIterator iterator; field in class:BreakIteratorTest
38 iterator = BreakIterator.getCharacterInstance(Locale.US);
47 assertNotSame(newOne, iterator);
48 assertEquals(newOne, iterator);
51 assertEquals(newOne, iterator);
54 assertEquals(newOne, iterator);
57 assertFalse(wordIterator.equals(iterator));
60 assertFalse(lineIterator.equals(iterator));
63 assertFalse(senteIterator.equals(iterator));
67 BreakIterator cloned = (BreakIterator) iterator
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractQueueTest.java27 public Iterator iterator() { return null; } // not needed method in class:AbstractQueueTest.Succeed
38 public Iterator iterator() { return null; } // not needed method in class:AbstractQueueTest.Fail
/libcore/luni/src/main/java/java/sql/
H A DSQLException.java228 * Obsolete. {@link #getCause()} should be used instead of this iterator. Returns an iterator
231 public Iterator<Throwable> iterator() { method in class:SQLException
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java119 * are returned by its iterator, this method must return the
151 * are returned by its iterator, this method must return the elements
294 * Returns an iterator over the elements contained in this set
297 * <p>The returned iterator provides a snapshot of the state of the set
298 * when the iterator was constructed. No synchronization is needed while
299 * traversing the iterator. The iterator does <em>NOT</em> support the
302 * @return an iterator over the elements in this set
304 public Iterator<E> iterator() { method in class:CopyOnWriteArraySet
305 return al.iterator();
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java79 * @param iterator
84 protected static Vector<FieldContainer> findFields(AttributedCharacterIterator iterator) { argument
86 while (iterator.getIndex() != iterator.getEndIndex()) {
87 int start = iterator.getRunStart();
88 int end = iterator.getRunLimit();
90 Iterator<Attribute> it = iterator.getAttributes().keySet().iterator();
93 Object value = iterator.getAttribute(attribute);
100 iterator
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DAbstractQueueTest.java41 public Iterator<E> iterator() { method in class:AbstractQueueTest.MockAbstractQueue
150 Iterator iter = queue.iterator();

Completed in 555 milliseconds

123