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

1234

/libcore/ojluni/src/main/java/java/lang/
H A DIterable.java41 * @param <T> the type of elements returned by the iterator
48 * Returns an iterator over elements of type {@code T}.
52 Iterator<T> iterator(); method in interface:Iterable
88 * inherits the <em>fail-fast</em> properties of the iterable's iterator.
102 return Spliterators.spliteratorUnknownSize(iterator(), 0);
/libcore/luni/src/test/java/libcore/java/util/
H A DAbstractCollectionTest.java83 @Override public Iterator iterator() { return Collections.emptySet().iterator(); } method in class:AbstractCollectionTest.EmptyCollection
H A DOldAbstractSetTest.java32 public Iterator iterator() { method in class:OldAbstractSetTest.Mock_AbstractSet
68 public Iterator iterator() {
H A DSpliteratorTester.java145 // Try to split the original iterator again.
163 spliterable.iterator().hasNext());
178 private static<T> List<T> toList(Iterator<T> iterator) { argument
180 while (iterator.hasNext()) {
181 result.add(iterator.next());
201 + spliterable.getClass(), elements, toList(spliterable.iterator()));
204 boolean isEmpty = !spliterable.iterator().hasNext();
/libcore/ojluni/src/main/java/java/nio/file/
H A DDirectoryStream.java39 * Iterator}; invoking the {@link #iterator iterator} method to obtain a second
40 * or subsequent iterator throws {@code IllegalStateException}. </b>
73 * If a thread is blocked on the directory stream's iterator reading from the
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 associate
158 Iterator<T> iterator(); method in interface:DirectoryStream
[all...]
/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.
182 * Returns an iterator over the elements in this collection. There are no
189 Iterator<E> iterator(); method in interface:Collection
194 * are returned by its iterator, this method must return the elements in
224 * are returned by its iterator, this method must return the elements in
394 * its {@link #iterator}. Each matching element is removed using
395 * {@link Iterator#remove()}. If the collection's iterator does not
412 final Iterator<E> each = iterator();
541 * <em>fail-fast</em> properties of the collection's iterator.
H A DHashSet.java58 * <p>The iterators returned by this class's <tt>iterator</tt> method are
59 * <i>fail-fast</i>: if the set is modified at any time after the iterator is
60 * created, in any way except through the iterator's own <tt>remove</tt>
62 * Thus, in the face of concurrent modification, the iterator fails quickly
66 * <p>Note that the fail-fast behavior of an iterator cannot be guaranteed
165 * Returns an iterator over the elements in this set. The elements
171 public Iterator<E> iterator() { method in class:HashSet
172 return map.keySet().iterator();
H A DNavigableSet.java164 * Returns an iterator over the elements in this set, in ascending order.
166 * @return an iterator over the elements in this set, in ascending order
168 Iterator<E> iterator(); method in interface:NavigableSet
175 * through the iterator's own {@code remove} operation), the results of
188 * Returns an iterator over the elements in this set, in descending order.
189 * Equivalent in effect to {@code descendingSet().iterator()}.
191 * @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/nio/fs/
H A DAbstractPath.java70 public final Iterator<Path> iterator() { method in class:AbstractPath
/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,
115 // Android-added: ICU iterator to delegate to.
119 CollationElementIterator(android.icu.text.CollationElementIterator iterator) { argument
120 icuIterator = iterator;
134 * Get the next collation element in the string. <p>This iterator iterates
140 * <p>This function returns the collation element that the iterator is currently
156 * Get the previous collation element in the string. <p>This iterator iterates
162 * <p>This function updates the iterator'
[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...]

Completed in 344 milliseconds

1234