Searched defs:toArray (Results 1 - 25 of 27) 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.java336 public Object[] toArray(); method in interface:List
352 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.java367 public Object[] toArray() { method in class:EnumMap.EnumMapEntrySet
369 return toArray(entryArray);
374 public Object[] toArray(Object[] 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.java444 @Override public java.lang.Object[] toArray() { method in class:Collections.SynchronizedCollection
446 return c.toArray();
456 @Override public <T> T[] toArray(T[] array) { method in class:Collections.SynchronizedCollection
458 return c.toArray(array);
553 list.toArray(array);
577 list.toArray(array);
985 @Override public Object[] toArray() { method in class:Collections.UnmodifiableCollection
986 return c.toArray();
989 @Override public <T> T[] toArray(T[] array) { method in class:Collections.UnmodifiableCollection
990 return c.toArray(arra
1211 @Override public Object[] toArray() { method in class:Collections.UnmodifiableMap.UnmodifiableEntrySet
1222 @Override public <T> T[] toArray(T[] contents) { method in class:Collections.UnmodifiableMap.UnmodifiableEntrySet
2709 @Override public Object[] toArray() { method in class:Collections.SetFromMap
2714 public <T> T[] toArray(T[] contents) { method in class:Collections.SetFromMap
2805 @Override public Object[] toArray() { method in class:Collections.AsLIFOQueue
2809 @Override public <T> T[] toArray(T[] contents) { method in class:Collections.AsLIFOQueue
2859 @Override public Object[] toArray() { method in class:Collections.CheckedCollection
2863 @Override public <T> T[] toArray(T[] arr) { method in class:Collections.CheckedCollection
3217 @Override public Object[] toArray() { method in class:Collections.CheckedMap.CheckedEntrySet
3228 @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.java132 public Object[] toArray() { method in class:CopyOnWriteArraySet
133 return al.toArray();
154 * <p>Like the {@link #toArray()} method, this method acts as bridge between
163 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
165 * Note that {@code toArray(new Object[0])} is identical in function to
166 * {@code toArray()}.
177 public <T> T[] toArray(T[] a) { method in class:CopyOnWriteArraySet
178 return al.toArray(a);
H A DDelayQueue.java394 public Object[] toArray() { method in class:DelayQueue
398 return q.toArray();
417 * <p>Like the {@link #toArray()} method, this method acts as bridge between
425 * <pre> {@code Delayed[] a = q.toArray(new Delayed[0]);}</pre>
427 * Note that {@code toArray(new Object[0])} is identical in function to
428 * {@code toArray()}.
439 public <T> T[] toArray(T[] a) { method in class:DelayQueue
443 return q.toArray(a);
496 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.java526 public Object[] toArray() { method in class:ArrayBlockingQueue
558 * <p>Like the {@link #toArray()} method, this method acts as bridge between
567 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
569 * Note that {@code toArray(new Object[0])} is identical in function to
570 * {@code toArray()}.
582 public <T> T[] toArray(T[] a) { method in class:ArrayBlockingQueue
H A DConcurrentLinkedDeque.java44 * {@code equals}, and {@code toArray} are <em>not</em> guaranteed
790 * Used by toArray.
1198 public Object[] toArray() { method in class:ConcurrentLinkedDeque
1199 return toArrayList().toArray();
1215 * <p>Like the {@link #toArray()} method, this method acts as
1225 * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
1227 * Note that {@code toArray(new Object[0])} is identical in function to
1228 * {@code toArray()}.
1239 public <T> T[] toArray(T[] a) { method in class:ConcurrentLinkedDeque
1240 return toArrayList().toArray(
[all...]
H A DScheduledThreadPoolExecutor.java337 for (Object e : q.toArray())
344 for (Object e : q.toArray()) {
1191 public Object[] toArray() { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
1202 public <T> T[] toArray(T[] a) { method in class:ScheduledThreadPoolExecutor.DelayedWorkQueue
H A DSynchronousQueue.java1055 public Object[] toArray() { method in class:SynchronousQueue
1067 public <T> T[] toArray(T[] a) { method in class:SynchronousQueue
/libcore/luni/src/main/java/java/nio/
H A DSelectorImpl.java390 public Object[] toArray() { method in class:SelectorImpl.UnaddableSet
391 return set.toArray();
394 public <T> T[] toArray(T[] a) { method in class:SelectorImpl.UnaddableSet
395 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 331 milliseconds

12