/libcore/luni/src/main/java/java/util/ |
H A D | AbstractCollection.java | 338 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 D | Collection.java | 292 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 D | Set.java | 178 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 D | List.java | 336 public Object[] toArray(); method in interface:List 352 public <T> T[] toArray(T[] array); method in interface:List
|
H A D | ArrayDeque.java | 731 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 D | ArrayList.java | 97 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 D | Arrays.java | 119 public Object[] toArray() { method in class:Arrays.ArrayList 125 public <T> T[] toArray(T[] contents) { method in class:Arrays.ArrayList
|
H A D | EnumMap.java | 367 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 D | Vector.java | 971 public synchronized Object[] toArray() { method in class:Vector 993 public synchronized <T> T[] toArray(T[] contents) { method in class:Vector
|
H A D | LinkedList.java | 922 public Object[] toArray() { method in class:LinkedList 950 public <T> T[] toArray(T[] contents) { method in class:LinkedList
|
H A D | Hashtable.java | 951 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 D | Collections.java | 444 @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 D | CopyOnWriteArraySet.java | 132 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 D | DelayQueue.java | 394 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 D | ConcurrentLinkedQueue.java | 54 * {@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 D | CopyOnWriteArrayList.java | 91 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 D | LinkedBlockingQueue.java | 566 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 D | PriorityBlockingQueue.java | 34 * {@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 D | LinkedBlockingDeque.java | 861 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 D | ArrayBlockingQueue.java | 526 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 D | ConcurrentLinkedDeque.java | 44 * {@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 D | ScheduledThreadPoolExecutor.java | 337 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 D | SynchronousQueue.java | 1055 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 D | SelectorImpl.java | 390 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 D | OldCollectionsTest.java | 397 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());
|