Searched defs:iterator (Results 26 - 50 of 84) sorted by relevance

1234

/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/ojluni/src/main/java/java/nio/file/
H A DPath.java716 * Returns an iterator over the name elements of this path.
718 * <p> The first element returned by the iterator represents the name
722 * #getRoot root} component, if present, is not returned by the iterator.
724 * @return an iterator over the name elements of this path.
727 Iterator<Path> iterator(); method in interface:Path
H A DFileTreeWalker.java71 private final Iterator<Path> iterator; field in class:FileTreeWalker.DirectoryNode
78 this.iterator = stream.iterator();
93 Iterator<Path> iterator() { method in class:FileTreeWalker.DirectoryNode
94 return iterator;
346 Iterator<Path> iterator = top.iterator();
348 if (iterator.hasNext()) {
349 entry = iterator.next();
/libcore/ojluni/src/main/java/java/util/
H A DDeque.java562 * Returns an iterator over the elements in this deque in proper sequence.
565 * @return an iterator over the elements in this deque in proper sequence
567 Iterator<E> iterator(); method in interface:Deque
570 * Returns an iterator over the elements in this deque in reverse
574 * @return an iterator over the elements in this deque in reverse
H A DJumboEnumSet.java85 * Returns an iterator over the elements contained in this set. The
86 * iterator traverses the elements in their <i>natural order</i> (which is
88 * Iterator is a "weakly consistent" iterator that will never throw {@link
91 * @return an iterator over the elements contained in this set
93 public Iterator<E> iterator() { method in class:JumboEnumSet
100 * of the set not yet returned by this iterator.
110 * The bit representing the last element returned by this iterator
H A DList.java46 * <tt>iterator</tt>, <tt>add</tt>, <tt>remove</tt>, <tt>equals</tt>, and
58 * The <tt>List</tt> interface provides a special iterator, called a
62 * list iterator that starts at a specified position in the list.<p>
148 * Returns an iterator over the elements in this list in proper sequence.
150 * @return an iterator over the elements in this list in proper sequence
152 Iterator<E> iterator(); method in interface:List
289 * collection's iterator (optional operation). The behavior of this
315 * specified collection's iterator. The behavior of this operation is
394 * If the list's list-iterator does not support the {@code set} operation
446 * ListIterator&lt;E&gt; iterator
[all...]
H A DRegularEnumSet.java65 * Returns an iterator over the elements contained in this set. The
66 * iterator traverses the elements in their <i>natural order</i> (which is
68 * Iterator is a "snapshot" iterator that will never throw {@link
72 * @return an iterator over the elements contained in this set
74 public Iterator<E> iterator() { method in class:RegularEnumSet
81 * returned by this iterator.
86 * The bit representing the last element returned by this iterator
H A DServiceLoader.java90 * far. Each invocation of the {@link #iterator iterator} method returns an
91 * iterator that first yields all of the elements of the cache, in
202 // The current lazy-lookup iterator
210 * #iterator() iterator} method will lazily look up and instantiate
290 // @return A (possibly empty) iterator that will yield the provider-class
319 return names.iterator();
436 * <p> The iterator returned by this method first yields all of the
443 * the iterator itsel
479 public Iterator<S> iterator() { method in class:ServiceLoader
[all...]
H A DAbstractList.java50 * <i>not</i> have to provide an iterator implementation; the iterator and
51 * list iterator are implemented by this class, on top of the "random access"
170 * <p>This implementation first gets a list iterator (with
194 * <p>This implementation first gets a list iterator that points to the end
240 * <p>This implementation gets an iterator over the specified collection
242 * iterator into this list at the appropriate position, one at a time,
270 * Returns an iterator over the elements in this list in proper sequence.
273 * iterator interface, relying on the backing list's {@code size()},
276 * <p>Note that the iterator returne
287 public Iterator<E> iterator() { method in class:AbstractList
690 public Iterator<E> iterator() { method in class:SubList
[all...]
H A DEnumMap.java178 keyType = m.keySet().iterator().next().getDeclaringClass();
375 * {@link Map#keySet()}. The set's iterator will return the keys
391 public Iterator<K> iterator() { method in class:EnumMap.KeySet
413 * {@link Map#values()}. The collection's iterator will return the
430 public Iterator<V> iterator() { method in class:EnumMap.Values
459 * {@link Map#keySet()}. The set's iterator will return the
474 public Iterator<Map.Entry<K,V>> iterator() { method in class:EnumMap.EntrySet
H A DSpliterators.java402 * {@link java.util.Collection#iterator()} as the source of elements, and
407 * the <em>fail-fast</em> properties of the collection's iterator, and
415 * @return A spliterator from an iterator
430 * the <em>fail-fast</em> properties of the iterator, and implements
434 * The behaviour of splitting and traversal is undefined if the iterator is
439 * @param iterator The iterator for the source
445 * @return A spliterator from an iterator
446 * @throws NullPointerException if the given iterator is {@code null}
448 public static <T> Spliterator<T> spliterator(Iterator<? extends T> iterator, argument
476 spliteratorUnknownSize(Iterator<? extends T> iterator, int characteristics) argument
505 spliterator(PrimitiveIterator.OfInt iterator, long size, int characteristics) argument
533 spliteratorUnknownSize(PrimitiveIterator.OfInt iterator, int characteristics) argument
562 spliterator(PrimitiveIterator.OfLong iterator, long size, int characteristics) argument
590 spliteratorUnknownSize(PrimitiveIterator.OfLong iterator, int characteristics) argument
619 spliterator(PrimitiveIterator.OfDouble iterator, long size, int characteristics) argument
647 spliteratorUnknownSize(PrimitiveIterator.OfDouble iterator, int characteristics) argument
666 public static<T> Iterator<T> iterator(Spliterator<? extends T> spliterator) { method in class:Spliterators
711 public static PrimitiveIterator.OfInt iterator(Spliterator.OfInt spliterator) { method in class:Spliterators
756 public static PrimitiveIterator.OfLong iterator(Spliterator.OfLong spliterator) { method in class:Spliterators
801 public static PrimitiveIterator.OfDouble iterator(Spliterator.OfDouble spliterator) { method in class:Spliterators
1728 IteratorSpliterator(Iterator<? extends T> iterator, long size, int characteristics) argument
1746 IteratorSpliterator(Iterator<? extends T> iterator, int characteristics) argument
1861 IntIteratorSpliterator(PrimitiveIterator.OfInt iterator, long size, int characteristics) argument
1878 IntIteratorSpliterator(PrimitiveIterator.OfInt iterator, int characteristics) argument
1955 LongIteratorSpliterator(PrimitiveIterator.OfLong iterator, long size, int characteristics) argument
1972 LongIteratorSpliterator(PrimitiveIterator.OfLong iterator, int characteristics) argument
2049 DoubleIteratorSpliterator(PrimitiveIterator.OfDouble iterator, long size, int characteristics) argument
2066 DoubleIteratorSpliterator(PrimitiveIterator.OfDouble iterator, int characteristics) argument
[all...]
H A DTreeSet.java60 * <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() { method in class:TreeSet
181 return m.navigableKeySet().iterator();
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DBlockingDeque.java635 * Returns an iterator over the elements in this deque in proper sequence.
638 * @return an iterator over the elements in this deque in proper sequence
640 Iterator<E> iterator(); method in interface:BlockingDeque
H A DCopyOnWriteArraySet.java164 * are returned by its iterator, this method must return the
196 * are returned by its iterator, this method must return the elements
379 * Returns an iterator over the elements contained in this set
382 * <p>The returned iterator provides a snapshot of the state of the set
383 * when the iterator was constructed. No synchronization is needed while
384 * traversing the iterator. The iterator does <em>NOT</em> support the
387 * @return an iterator over the elements in this set
389 public Iterator<E> iterator() { method in class:CopyOnWriteArraySet
390 return al.iterator();
[all...]
H A DDelayQueue.java66 * <p>This class and its iterator implement all of the
69 * #iterator()} is <em>not</em> guaranteed to traverse the elements of
504 for (Iterator<E> it = q.iterator(); it.hasNext(); ) {
516 * Returns an iterator over all the elements (both expired and
517 * unexpired) in this queue. The iterator does not return the
520 * <p>The returned iterator is
523 * @return an iterator over the elements in this queue
525 public Iterator<E> iterator() { method in class:DelayQueue
530 * Snapshot iterator that works off copy of underlying q array.
H A DConcurrentSkipListSet.java81 * to be performed atomically. For example, an iterator operating
272 * Returns an iterator over the elements in this set in ascending order.
274 * @return an iterator over the elements in this set in ascending order
276 public Iterator<E> iterator() { method in class:ConcurrentSkipListSet
277 return m.navigableKeySet().iterator();
281 * Returns an iterator over the elements in this set in descending order.
283 * @return an iterator over the elements in this set in descending order
286 return m.descendingKeySet().iterator();
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixDirectoryStream.java61 // directory iterator
62 private Iterator<Path> iterator; field in class:UnixDirectoryStream
124 protected final Iterator<Path> iterator(DirectoryStream<Path> ds) { method in class:UnixDirectoryStream
129 if (iterator != null)
131 iterator = new UnixDirectoryIterator(ds);
132 return iterator;
137 public Iterator<Path> iterator() { method in class:UnixDirectoryStream
138 return iterator(this);
H A DUnixSecureDirectoryStream.java88 public Iterator<Path> iterator() { method in class:UnixSecureDirectoryStream
89 return ds.iterator(this);
/libcore/ojluni/src/main/java/sun/security/x509/
H A DGeneralSubtrees.java112 public Iterator<GeneralSubtree> iterator() { method in class:GeneralSubtrees
113 return trees.iterator();
/libcore/luni/src/test/java/libcore/libcore/io/
H A DMemoryMappedFileTest.java104 BufferIterator iterator = memoryMappedFile.bigEndianIterator();
108 iterator.readByte();
125 BufferIterator iterator = iteratorFactory.apply(mappedFile);
127 assertReadByteSucceeds(iterator, bytes[i]);
131 iterator.seek(0);
133 assertReadByteSucceeds(iterator, bytes[i]);
134 iterator.skip(1);
153 BufferIterator iterator = iteratorFactory.apply(mappedFile);
154 seekRead(bytes, iterator, 2);
156 seekRead(bytes, iterator,
174 seekRead(byte[] bytes, BufferIterator iterator, int offset) argument
180 seekReadExpectFailure(BufferIterator iterator, int offset) argument
278 checkShortFailureCases(BufferIterator iterator) argument
340 checkIntFailureCases(BufferIterator iterator) argument
392 checkIntArrayZeroReadCases(BufferIterator iterator) argument
476 checkByteArrayZeroReadCases(BufferIterator iterator) argument
519 assertReadByteArrayFails( BufferIterator iterator, byte[] dst, int offset, int intCount) argument
531 assertReadByteArraySucceeds( BufferIterator iterator, byte[] underlyingData, int byteCount) argument
556 assertReadIntArrayFails( BufferIterator iterator, int[] dst, int offset, int intCount) argument
568 assertReadIntArraySucceeds( BufferIterator iterator, byte[] underlyingData, ByteOrder byteOrder, int intCount) argument
600 assertReadIntFails(BufferIterator iterator) argument
610 assertReadIntSucceeds(BufferIterator iterator, int expectedValue) argument
616 assertReadShortFails(BufferIterator iterator) argument
626 assertReadShortSucceeds(BufferIterator iterator, short expectedValue) argument
632 assertReadByteFails(BufferIterator iterator) argument
643 assertReadByteSucceeds(BufferIterator iterator, byte expectedValue) argument
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java711 PrimitiveIterator.OfDouble iterator(); method in interface:DoubleStream
775 final PrimitiveIterator.OfDouble iterator = new PrimitiveIterator.OfDouble() {
791 iterator,
H A DSpinedBuffer.java238 public Iterator<E> iterator() { method in class:SpinedBuffer
239 return Spliterators.iterator(spliterator());
467 public abstract Iterator<E> iterator(); method in class:SpinedBuffer.OfPrimitive
786 public PrimitiveIterator.OfInt iterator() { method in class:SpinedBuffer.OfInt
787 return Spliterators.iterator(spliterator());
900 public PrimitiveIterator.OfLong iterator() { method in class:SpinedBuffer.OfLong
901 return Spliterators.iterator(spliterator());
1016 public PrimitiveIterator.OfDouble iterator() { method in class:SpinedBuffer.OfDouble
1017 return Spliterators.iterator(spliterator());
/libcore/ojluni/src/main/java/javax/security/auth/
H A DSubject.java857 Iterator<Principal> pI = principals.iterator();
866 Iterator<Object> pI = pubCredentials.iterator();
877 Iterator<Object> pI = privCredentials.iterator();
922 Iterator<Principal> pIterator = principals.iterator();
930 Iterator<Object> pubCIterator = pubCredentials.iterator();
1047 public Iterator<E> iterator() { method in class:Subject.SecureSet
1142 final Iterator<E> e = iterator();
1170 final Iterator<E> e = iterator();
1211 final Iterator<E> e = iterator();
1225 Iterator<?> ce = c.iterator();
1428 public Iterator<T> iterator() { method in class:Subject.ClassSet
[all...]
/libcore/ojluni/src/main/java/sun/security/jca/
H A DProviderList.java474 // override isEmpty() and iterator() to not call size()
481 public Iterator<Service> iterator() { method in class:ProviderList.ServiceList
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DTestData.java47 default Iterator<T> iterator() { method in interface:TestData
48 return Spliterators.iterator(spliterator());
294 public PrimitiveIterator.OfInt iterator() { method in class:TestData.AbstractTestData.IntTestData
295 return Spliterators.iterator(spliterator());
319 public PrimitiveIterator.OfLong iterator() { method in class:TestData.AbstractTestData.LongTestData
320 return Spliterators.iterator(spliterator());
344 public PrimitiveIterator.OfDouble iterator() { method in class:TestData.AbstractTestData.DoubleTestData
345 return Spliterators.iterator(spliterator());

Completed in 2813 milliseconds

1234