Searched defs:toArray (Results 1 - 25 of 39) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/
H A DAbstractCollection.java131 * return list.toArray();
134 public Object[] toArray() { method in class:AbstractCollection
167 * return list.toArray(a);
174 public <T> T[] toArray(T[] a) { method in class:AbstractCollection
211 * Reallocates the array being used within toArray when the iterator
H A DCollection.java207 Object[] toArray(); method in interface:Collection
227 * <p>Like the {@link #toArray()} method, this method acts as bridge between
237 * String[] y = x.toArray(new String[0]);</pre>
239 * Note that <tt>toArray(new Object[0])</tt> is identical in function to
240 * <tt>toArray()</tt>.
252 <T> T[] toArray(T[] a); method in interface:Collection
H A DSet.java146 Object[] toArray(); method in interface:Set
166 * <p>Like the {@link #toArray()} method, this method acts as bridge between
176 * String[] y = x.toArray(new String[0]);</pre>
178 * Note that <tt>toArray(new Object[0])</tt> is identical in function to
179 * <tt>toArray()</tt>.
190 <T> T[] toArray(T[] a); method in interface:Set
H A DList.java170 Object[] toArray(); method in interface:List
186 * <p>Like the {@link #toArray()} method, this method acts as bridge between
196 * String[] y = x.toArray(new String[0]);
199 * Note that <tt>toArray(new Object[0])</tt> is identical in function to
200 * <tt>toArray()</tt>.
211 <T> T[] toArray(T[] a); method in interface:List
444 * Object[] elements = toArray();
499 Object[] a = this.toArray();
H A DEnumMap.java496 public Object[] toArray() { method in class:EnumMap.EntrySet
500 public <T> T[] toArray(T[] a) { method in class:EnumMap.EntrySet
H A DArrayDeque.java765 public Object[] toArray() { method in class:ArrayDeque
789 * <p>Like the {@link #toArray()} method, this method acts as bridge between
798 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
800 * Note that {@code toArray(new Object[0])} is identical in function to
801 * {@code toArray()}.
813 public <T> T[] toArray(T[] a) { method in class:ArrayDeque
H A DArrays.java3712 * combination with {@link Collection#toArray}. The returned list is
3750 public Object[] toArray() { method in class:Arrays.ArrayList
3756 public <T> T[] toArray(T[] a) { method in class:Arrays.ArrayList
H A DPriorityQueue.java59 * traversal, consider using {@code Arrays.sort(pq.toArray())}.
247 this.queue = c.toArray();
255 Object[] a = c.toArray();
256 // If c.toArray incorrectly doesn't return Object[], copy it.
425 public Object[] toArray() { method in class:PriorityQueue
442 * <p>Like the {@link #toArray()} method, this method acts as bridge between
451 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
453 * Note that {@code toArray(new Object[0])} is identical in function to
454 * {@code toArray()}.
466 public <T> T[] toArray( method in class:PriorityQueue
[all...]
/libcore/ojluni/src/main/java/sun/security/jca/
H A DGetInstance.java59 public Object[] toArray() { method in class:GetInstance.Instance
H A DProviderList.java113 return new ProviderList(list.toArray(PC0), true);
197 configs = configList.toArray(PC0);
226 ProviderConfig[] configArray = newConfigs.toArray(PC0);
320 public Provider[] toArray() { method in class:ProviderList
321 return providers().toArray(P0);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java177 public Object[] toArray() { method in class:CopyOnWriteArraySet
178 return al.toArray();
199 * <p>Like the {@link #toArray()} method, this method acts as bridge between
208 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
210 * Note that {@code toArray(new Object[0])} is identical in function to
211 * {@code toArray()}.
222 public <T> T[] toArray(T[] a) { method in class:CopyOnWriteArraySet
223 return al.toArray(a);
H A DDelayQueue.java428 public Object[] toArray() { method in class:DelayQueue
432 return q.toArray();
451 * <p>Like the {@link #toArray()} method, this method acts as bridge between
459 * <pre> {@code Delayed[] a = q.toArray(new Delayed[0]);}</pre>
461 * Note that {@code toArray(new Object[0])} is identical in function to
462 * {@code toArray()}.
473 public <T> T[] toArray(T[] a) { method in class:DelayQueue
477 return q.toArray(a);
526 return new Itr(toArray());
H A DConcurrentLinkedQueue.java87 * {@code equals}, and {@code toArray} are <em>not</em> guaranteed
630 public Object[] toArray() { method in class:ConcurrentLinkedQueue
646 * <p>Like the {@link #toArray()} method, this method acts as bridge between
655 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
657 * Note that {@code toArray(new Object[0])} is identical in function to
658 * {@code toArray()}.
670 public <T> T[] toArray(T[] a) { method in class:ConcurrentLinkedQueue
H A DCopyOnWriteArrayList.java141 elements = c.toArray();
142 // defend against c.toArray (incorrectly) not returning Object[]
324 public Object[] toArray() { method in class:CopyOnWriteArrayList
344 * <p>Like the {@link #toArray()} method, this method acts as bridge between
353 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
355 * Note that {@code toArray(new Object[0])} is identical in function to
356 * {@code toArray()}.
368 public <T> T[] toArray(T[] a) { method in class:CopyOnWriteArrayList
729 Object[] cs = c.toArray();
774 ((CopyOnWriteArrayList<?>)c).getArray() : c.toArray();
[all...]
H A DLinkedBlockingQueue.java594 public Object[] toArray() { method in class:LinkedBlockingQueue
620 * <p>Like the {@link #toArray()} method, this method acts as bridge between
629 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
631 * Note that {@code toArray(new Object[0])} is identical in function to
632 * {@code toArray()}.
644 public <T> T[] toArray(T[] a) { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java73 * {@code Arrays.sort(pq.toArray())}. Also, method {@code drainTo}
263 Object[] a = c.toArray();
265 // If c.toArray incorrectly doesn't return Object[], copy it.
782 public Object[] toArray() { method in class:PriorityBlockingQueue
805 * <p>Like the {@link #toArray()} method, this method acts as bridge between
814 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
816 * Note that {@code toArray(new Object[0])} is identical in function to
817 * {@code toArray()}.
828 public <T> T[] toArray(T[] a) { method in class:PriorityBlockingQueue
855 return new Itr(toArray());
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DDoubleStream.java320 double[] toArray(); method in interface:DoubleStream
H A DStream.java524 Object[] toArray(); method in interface:Stream
542 * .toArray(Person[]::new);
553 <A> A[] toArray(IntFunction<A[]> generator); method in interface:Stream
H A DDoublePipeline.java506 public final double[] toArray() { method in class:DoublePipeline
H A DIntPipeline.java502 public final int[] toArray() { method in class:IntPipeline
H A DIntStream.java315 int[] toArray(); method in interface:IntStream
H A DLongPipeline.java484 public final long[] toArray() { method in class:LongPipeline
H A DLongStream.java319 long[] toArray(); method in interface:LongStream
H A DReferencePipeline.java429 public final <A> A[] toArray(IntFunction<A[]> generator) { method in class:ReferencePipeline
445 public final Object[] toArray() { method in class:ReferencePipeline
446 return toArray(Object[]::new);
/libcore/luni/src/test/java/libcore/java/util/
H A DOldCollectionsTest.java397 public Object[] toArray() { method in class:OldCollectionsTest.Mock_Collection
401 public Object[] toArray(Object[] a) { method in class:OldCollectionsTest.Mock_Collection
453 public Object[] toArray() { method in class:OldCollectionsTest.Mock_WrongCollection
457 public Object[] toArray(Object[] a) { method in class:OldCollectionsTest.Mock_WrongCollection
716 : Arrays.equals(a.toArray(), b.toArray());

Completed in 5505 milliseconds

12