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

1234

/libcore/ojluni/src/main/java/java/lang/
H A DIterable.java40 * @param <T> the type of elements returned by the iterator
47 * Returns an iterator over elements of type {@code T}.
51 Iterator<T> iterator(); method in interface:Iterable
87 * inherits the <em>fail-fast</em> properties of the iterable's iterator.
101 return Spliterators.spliteratorUnknownSize(iterator(), 0);
/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/ojluni/src/main/java/sun/util/
H A DResourceBundleEnumeration.java40 Iterator<String> iterator; field in class:ResourceBundleEnumeration
51 this.iterator = set.iterator();
59 if (iterator.hasNext()) {
60 next = iterator.next();
/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/ojluni/src/main/java/java/util/
H A DAbstractSequentialList.java38 * <tt>remove(int index)</tt>) on top of the list's list iterator, instead of
44 * list iterator's <tt>hasNext</tt>, <tt>next</tt>, <tt>hasPrevious</tt>,
48 * iterator's <tt>set</tt> method. For a variable-size list the programmer
49 * should additionally implement the list iterator's <tt>remove</tt> and
80 * <p>This implementation first gets a list iterator pointing to the
98 * <p>This implementation first gets a list iterator pointing to the
104 * <tt>UnsupportedOperationException</tt> if the list iterator does not
130 * <p>This implementation first gets a list iterator pointing to the
135 * <tt>UnsupportedOperationException</tt> if the list iterator does not
158 * <p>This implementation first gets a list iterator pointin
238 public Iterator<E> iterator() { method in class:AbstractSequentialList
[all...]
H A DAbstractCollection.java33 * extend this class and provide implementations for the <tt>iterator</tt> and
34 * <tt>size</tt> methods. (The iterator returned by the <tt>iterator</tt>
39 * <tt>UnsupportedOperationException</tt>), and the iterator returned by the
40 * <tt>iterator</tt> method must additionally implement its <tt>remove</tt>
72 * Returns an iterator over the elements contained in this collection.
74 * @return an iterator over the elements contained in this collection
76 public abstract Iterator<E> iterator(); method in class:AbstractCollection
99 Iterator<E> it = iterator();
116 * returned by this collection's iterator, i
[all...]
H A DCollection.java88 * iterator to examine the collection.
169 * Returns an iterator over the elements in this collection. There are no
176 Iterator<E> iterator(); method in interface:Collection
181 * are returned by its iterator, this method must return the elements in
211 * are returned by its iterator, this method must return the elements in
381 * its {@link #iterator}. Each matching element is removed using
382 * {@link Iterator#remove()}. If the collection's iterator does not
399 final Iterator<E> each = iterator();
528 * <em>fail-fast</em> properties of the collection's iterator.
H A DHashSet.java56 * <p>The iterators returned by this class's <tt>iterator</tt> method are
57 * <i>fail-fast</i>: if the set is modified at any time after the iterator is
58 * created, in any way except through the iterator's own <tt>remove</tt>
60 * Thus, in the face of concurrent modification, the iterator fails quickly
64 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
163 * Returns an iterator over the elements in this set. The elements
169 public Iterator<E> iterator() { method in class:HashSet
170 return map.keySet().iterator();
H A DNavigableSet.java163 * Returns an iterator over the elements in this set, in ascending order.
165 * @return an iterator over the elements in this set, in ascending order
167 Iterator<E> iterator(); method in interface:NavigableSet
174 * through the iterator's own {@code remove} operation), the results of
187 * Returns an iterator over the elements in this set, in descending order.
188 * Equivalent in effect to {@code descendingSet().iterator()}.
190 * @return an iterator over the elements in this set, in descending order
H A DSet.java122 * Returns an iterator over the elements in this set. The elements are
126 * @return an iterator over the elements in this set
128 Iterator<E> iterator(); method in interface:Set
133 * are returned by its iterator, this method must return the
163 * are returned by its iterator, this method must return the elements
397 * <em>fail-fast</em> properties of the set's iterator.
/libcore/ojluni/src/main/java/java/util/stream/
H A DBaseStream.java65 * Returns an iterator for the elements of this stream.
70 * @return the element iterator for this stream
72 Iterator<T> iterator(); method in interface:BaseStream
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DAdjacencyList.java64 * The iterator method returns objects of type <code>BuildStep</code>, not
113 public Iterator<BuildStep> iterator() { method in class:AdjacencyList
114 return Collections.unmodifiableList(mStepList).iterator();
/libcore/ojluni/src/main/java/java/sql/
H A DSQLException.java305 * Returns an iterator over the chained SQLExceptions. The iterator will
309 * @return an iterator over the chained SQLExceptions and causes in the proper
314 public Iterator<Throwable> iterator() { method in class:SQLException
/libcore/ojluni/src/main/java/java/text/
H A DCollationElementIterator.java43 * The <code>CollationElementIterator</code> class is used as an iterator
44 * to walk through each character of an international string. Use the iterator
73 * Example of the iterator usage,
113 CollationElementIterator(android.icu.text.CollationElementIterator iterator) { argument
114 icuIterator = iterator;
126 * Get the next collation element in the string. <p>This iterator iterates
132 * <p>This function returns the collation element that the iterator is currently
144 * Get the previous collation element in the string. <p>This iterator iterates
150 * <p>This function updates the iterator's internal pointer to point to the
212 * Sets the iterator t
[all...]
H A DFormat.java321 * <code>iterator</code> and the additional attribute <code>key</code>
324 * @param iterator Initial AttributedCharacterIterator to add arg to
330 AttributedCharacterIterator iterator,
332 AttributedString as = new AttributedString(iterator);
329 createAttributedCharacterIterator( AttributedCharacterIterator iterator, AttributedCharacterIterator.Attribute key, Object value) argument
H A DIcuIteratorWrapper.java69 * iterator uses a longest-possible-match algorithm when matching text to regular
70 * expressions. The iterator also treats descriptions containing multiple regular expressions
122 * expression.&nbsp; (e.g., &quot;[a-z]&#42;/[:Zs:]*[1-0]&quot; will match if the iterator sees a
145 * parser that this expression specifies the backwards-iteration behavior of the iterator,
218 IcuIteratorWrapper(android.icu.text.BreakIterator iterator) { argument
219 wrapped = iterator;
223 * Clones this iterator.
286 * Advances the iterator either forward or backward the specified number of steps.
300 * Advances the iterator to the next boundary position.
309 * Advances the iterator backward
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DGeneralNames.java100 public Iterator<GeneralName> iterator() { method in class:GeneralNames
101 return names.iterator();
/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.java38 public Iterator iterator() { return null; } // not needed method in class:AbstractQueueTest.Succeed
49 public Iterator iterator() { return null; } // not needed method in class:AbstractQueueTest.Fail
/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();
/libcore/luni/src/main/java/java/util/concurrent/
H A DBlockingDeque.java606 * Returns an iterator over the elements in this deque in proper sequence.
609 * @return an iterator over the elements in this deque in proper sequence
611 Iterator<E> iterator(); method in interface:BlockingDeque
H A DCopyOnWriteArraySet.java135 * are returned by its iterator, this method must return the
167 * are returned by its iterator, this method must return the elements
350 * Returns an iterator over the elements contained in this set
353 * <p>The returned iterator provides a snapshot of the state of the set
354 * when the iterator was constructed. No synchronization is needed while
355 * traversing the iterator. The iterator does <em>NOT</em> support the
358 * @return an iterator over the elements in this set
360 public Iterator<E> iterator() { method in class:CopyOnWriteArraySet
361 return al.iterator();
[all...]
H A DDelayQueue.java37 * <p>This class and its iterator implement all of the
40 * #iterator()} is <em>not</em> guaranteed to traverse the elements of
475 for (Iterator<E> it = q.iterator(); it.hasNext(); ) {
487 * Returns an iterator over all the elements (both expired and
488 * unexpired) in this queue. The iterator does not return the
491 * <p>The returned iterator is
494 * @return an iterator over the elements in this queue
496 public Iterator<E> iterator() { method in class:DelayQueue
501 * Snapshot iterator that works off copy of underlying q array.

Completed in 799 milliseconds

1234