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

12

/libcore/luni/src/main/java/java/util/
H A DAbstractCollection.java338 public Object[] toArray() { method in class:AbstractCollection
339 return toArrayList().toArray();
342 public <T> T[] toArray(T[] contents) { method in class:AbstractCollection
343 return toArrayList().toArray(contents);
H A DCollection.java292 public Object[] toArray(); method in interface:Collection
304 * {@code toArray(new Object[0])} behaves exactly the same way as
305 * {@code toArray()} does.
315 public <T> T[] toArray(T[] array); method in interface:Collection
H A DSet.java178 public Object[] toArray(); method in interface:Set
193 * @see Collection#toArray(Object[])
195 public <T> T[] toArray(T[] array); method in interface:Set
H A DList.java341 public Object[] toArray(); method in interface:List
357 public <T> T[] toArray(T[] array); method in interface:List
H A DArrayDeque.java731 public Object[] toArray() { method in class:ArrayDeque
748 * <p>Like the {@link #toArray()} method, this method acts as bridge between
757 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
759 * Note that <tt>toArray(new Object[0])</tt> is identical in function to
760 * <tt>toArray()</tt>.
772 public <T> T[] toArray(T[] a) { method in class:ArrayDeque
H A DArrayList.java97 Object[] a = collection.toArray();
188 Object[] newPart = collection.toArray();
228 Object[] newPart = collection.toArray();
494 @Override public Object[] toArray() { method in class:ArrayList
516 @Override public <T> T[] toArray(T[] contents) { method in class:ArrayList
H A DArrays.java119 public Object[] toArray() { method in class:Arrays.ArrayList
125 public <T> T[] toArray(T[] contents) { method in class:Arrays.ArrayList
H A DEnumMap.java353 public Object[] toArray() { method in class:EnumMap.EnumMapEntrySet
355 return toArray(entryArray);
359 public <T> T[] toArray(T[] array) { method in class:EnumMap.EnumMapEntrySet
H A DVector.java971 public synchronized Object[] toArray() { method in class:Vector
993 public synchronized <T> T[] toArray(T[] contents) { method in class:Vector
H A DLinkedList.java922 public Object[] toArray() { method in class:LinkedList
950 public <T> T[] toArray(T[] contents) { method in class:LinkedList
H A DHashtable.java951 public Object[] toArray() { method in class:Hashtable.KeySet
953 return super.toArray();
956 public <T> T[] toArray(T[] a) { method in class:Hashtable.KeySet
958 return super.toArray(a);
986 public Object[] toArray() { method in class:Hashtable.Values
988 return super.toArray();
991 public <T> T[] toArray(T[] a) { method in class:Hashtable.Values
993 return super.toArray(a);
1048 public Object[] toArray() { method in class:Hashtable.EntrySet
1050 return super.toArray();
1053 public <T> T[] toArray(T[] a) { method in class:Hashtable.EntrySet
[all...]
H A DCollections.java448 @Override public java.lang.Object[] toArray() { method in class:Collections.SynchronizedCollection
450 return c.toArray();
460 @Override public <T> T[] toArray(T[] array) { method in class:Collections.SynchronizedCollection
462 return c.toArray(array);
557 list.toArray(array);
581 list.toArray(array);
989 @Override public Object[] toArray() { method in class:Collections.UnmodifiableCollection
990 return c.toArray();
993 @Override public <T> T[] toArray(T[] array) { method in class:Collections.UnmodifiableCollection
994 return c.toArray(arra
1215 @Override public Object[] toArray() { method in class:Collections.UnmodifiableMap.UnmodifiableEntrySet
1226 @Override public <T> T[] toArray(T[] contents) { method in class:Collections.UnmodifiableMap.UnmodifiableEntrySet
2731 @Override public Object[] toArray() { method in class:Collections.SetFromMap
2736 public <T> T[] toArray(T[] contents) { method in class:Collections.SetFromMap
2827 @Override public Object[] toArray() { method in class:Collections.AsLIFOQueue
2831 @Override public <T> T[] toArray(T[] contents) { method in class:Collections.AsLIFOQueue
2881 @Override public Object[] toArray() { method in class:Collections.CheckedCollection
2885 @Override public <T> T[] toArray(T[] arr) { method in class:Collections.CheckedCollection
3239 @Override public Object[] toArray() { method in class:Collections.CheckedMap.CheckedEntrySet
3250 @Override public <T> T[] toArray(T[] array) { method in class:Collections.CheckedMap.CheckedEntrySet
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DCopyOnWriteArraySet.java133 public Object[] toArray() { method in class:CopyOnWriteArraySet
134 return al.toArray();
155 * <p>Like the {@link #toArray()} method, this method acts as bridge between
164 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
166 * Note that {@code toArray(new Object[0])} is identical in function to
167 * {@code toArray()}.
178 public <T> T[] toArray(T[] a) { method in class:CopyOnWriteArraySet
179 return al.toArray(a);
H A DDelayQueue.java395 public Object[] toArray() { method in class:DelayQueue
399 return q.toArray();
418 * <p>Like the {@link #toArray()} method, this method acts as bridge between
426 * <pre> {@code Delayed[] a = q.toArray(new Delayed[0]);}</pre>
428 * Note that {@code toArray(new Object[0])} is identical in function to
429 * {@code toArray()}.
440 public <T> T[] toArray(T[] a) { method in class:DelayQueue
444 return q.toArray(a);
497 return new Itr(toArray());
H A DConcurrentLinkedQueue.java54 * {@code equals}, and {@code toArray} are <em>not</em> guaranteed
549 public Object[] toArray() { method in class:ConcurrentLinkedQueue
557 return al.toArray();
572 * <p>Like the {@link #toArray()} method, this method acts as bridge between
581 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
583 * Note that {@code toArray(new Object[0])} is identical in function to
584 * {@code toArray()}.
596 public <T> T[] toArray(T[] a) { method in class:ConcurrentLinkedQueue
618 return al.toArray(a);
H A DCopyOnWriteArrayList.java91 this((E[]) collection.toArray());
223 public Object[] toArray() { method in class:CopyOnWriteArrayList
228 public <T> T[] toArray(T[] contents) { method in class:CopyOnWriteArrayList
287 Object[] toAdd = collection.toArray();
307 Object[] toAdd = collection.toArray();
H A DLinkedBlockingQueue.java566 public Object[] toArray() { method in class:LinkedBlockingQueue
592 * <p>Like the {@link #toArray()} method, this method acts as bridge between
601 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
603 * Note that {@code toArray(new Object[0])} is identical in function to
604 * {@code toArray()}.
616 public <T> T[] toArray(T[] a) { method in class:LinkedBlockingQueue
H A DPriorityBlockingQueue.java34 * {@code Arrays.sort(pq.toArray())}. Also, method {@code drainTo}
224 Object[] a = c.toArray();
226 // If c.toArray incorrectly doesn't return Object[], copy it.
685 public Object[] toArray() { method in class:PriorityBlockingQueue
784 * <p>Like the {@link #toArray()} method, this method acts as bridge between
793 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
795 * Note that {@code toArray(new Object[0])} is identical in function to
796 * {@code toArray()}.
807 public <T> T[] toArray(T[] a) { method in class:PriorityBlockingQueue
838 return new Itr(toArray());
[all...]
H A DLinkedBlockingDeque.java861 public Object[] toArray() { method in class:LinkedBlockingDeque
887 * <p>Like the {@link #toArray()} method, this method acts as bridge between
896 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
898 * Note that {@code toArray(new Object[0])} is identical in function to
899 * {@code toArray()}.
911 public <T> T[] toArray(T[] a) { method in class:LinkedBlockingDeque
H A DArrayBlockingQueue.java512 public Object[] toArray() { method in class:ArrayBlockingQueue
539 * <p>Like the {@link #toArray()} method, this method acts as bridge between
548 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
550 * Note that {@code toArray(new Object[0])} is identical in function to
551 * {@code toArray()}.
563 public <T> T[] toArray(T[] a) { method in class:ArrayBlockingQueue
H A DConcurrentLinkedDeque.java44 * {@code equals}, and {@code toArray} are <em>not</em> guaranteed
788 * Used by toArray.
1196 public Object[] toArray() { method in class:ConcurrentLinkedDeque
1197 return toArrayList().toArray();
1213 * <p>Like the {@link #toArray()} method, this method acts as
1223 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
1225 * Note that {@code toArray(new Object[0])} is identical in function to
1226 * {@code toArray()}.
1237 public <T> T[] toArray(T[] a) { method in class:ConcurrentLinkedDeque
1238 return toArrayList().toArray(
[all...]
H A DScheduledThreadPoolExecutor.java341 for (Object e : q.toArray())
348 for (Object e : q.toArray()) {
1219 public Object[] toArray() { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1230 public <T> T[] toArray(T[] a) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
H A DSynchronousQueue.java1056 public Object[] toArray() { method in class:SynchronousQueue
1068 public <T> T[] toArray(T[] a) { method in class:SynchronousQueue
/libcore/luni/src/main/java/java/nio/
H A DSelectorImpl.java393 public Object[] toArray() { method in class:SelectorImpl.UnaddableSet
394 return set.toArray();
397 public <T> T[] toArray(T[] a) { method in class:SelectorImpl.UnaddableSet
398 return set.toArray(a);
/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 249 milliseconds

12