/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | AbstractSet.java | 87 * Removes all occurrences in this collection which are contained in the 88 * specified collection. 90 * @param collection 91 * the collection of objects to remove. 92 * @return {@code true} if this collection was modified, {@code false} 95 * if removing from this collection is not supported. 98 public boolean removeAll(Collection<?> collection) { argument 100 if (size() <= collection.size()) { 103 if (collection.contains(it.next())) { 109 Iterator<?> it = collection [all...] |
H A D | LinkedHashSet.java | 73 * elements in the specified collection. 75 * @param collection 76 * the collection of elements to add. 78 public LinkedHashSet(Collection<? extends E> collection) { argument 79 super(new LinkedHashMap<E, HashSet<E>>(collection.size() < 6 ? 11 80 : collection.size() * 2)); 81 for (E e : collection) {
|
H A D | AbstractSequentialList.java | 42 public boolean addAll(int location, Collection<? extends E> collection) { argument 44 Iterator<? extends E> colIt = collection.iterator();
|
H A D | AbstractCollection.java | 25 * iterator()} and {@code size()} to create an immutable collection. To create a 26 * modifiable collection it's necessary to override the {@code add()} method that 45 * Attempts to add all of the objects contained in {@code collection} 57 * @param collection 58 * the collection of objects. 69 * if {@code collection} is {@code null}, or if it contains 73 public boolean addAll(Collection<? extends E> collection) { argument 75 Iterator<? extends E> it = collection.iterator(); 151 * @param collection 152 * the collection o 165 containsAll(Collection<?> collection) argument 274 removeAll(Collection<?> collection) argument 315 retainAll(Collection<?> collection) argument [all...] |
H A D | Collection.java | 22 * {@code Collection} is the root of the collection hierarchy. It defines operations on 28 * collection and one with a parameter of type {@code Collection}. This second 29 * constructor can be used to create a collection of different type as the 30 * initial collection but with the same elements. Implementations of {@code Collection} 34 * Methods that change the content of a collection throw an 35 * {@code UnsupportedOperationException} if the underlying collection does not 37 * in cases where the requested operation would not change the collection. In 42 * {@code UnsupportedOperationException} if the underlying collection doesn't 52 * is contained in the collection. 54 * If the collection wa 107 addAll(Collection<? extends E> collection) argument 159 containsAll(Collection<?> collection) argument 245 removeAll(Collection<?> collection) argument 269 retainAll(Collection<?> collection) argument [all...] |
H A D | Set.java | 45 * Adds the objects in the specified collection which do not exist yet in 48 * @param collection 49 * the collection of objects. 58 public boolean addAll(Collection<? extends E> collection); argument 81 * Searches this set for all objects in the specified collection. 83 * @param collection 84 * the collection of objects. 85 * @return {@code true} if all objects in the specified collection are 88 public boolean containsAll(Collection<?> collection); argument 144 * Removes all objects in the specified collection fro 152 removeAll(Collection<?> collection) argument 164 retainAll(Collection<?> collection) argument [all...] |
H A D | HashSet.java | 68 * elements in the specified collection. 70 * @param collection 71 * the collection of elements to add. 73 public HashSet(Collection<? extends E> collection) { argument 74 this(new HashMap<E, HashSet<E>>(collection.size() < 6 ? 11 : collection 76 for (E e : collection) {
|
H A D | HugeEnumSet.java | 142 public boolean addAll(Collection<? extends E> collection) { argument 143 if (collection.isEmpty() || collection == this) { 147 if (collection instanceof EnumSet) { 148 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 166 return super.addAll(collection); 217 public boolean containsAll(Collection<?> collection) { argument 218 if (collection.isEmpty()) { 221 if (collection instanceof HugeEnumSet) { 222 HugeEnumSet<?> set = (HugeEnumSet<?>) collection; 273 removeAll(Collection<?> collection) argument 301 retainAll(Collection<?> collection) argument [all...] |
H A D | List.java | 22 * A {@code List} is a collection which maintains an ordering for its elements. Every 69 * Inserts the objects in the specified collection at the specified location 71 * the collection's iterator. 75 * @param collection 76 * the collection of objects to be inserted. 78 * otherwise (i.e. if the passed collection was empty). 89 public boolean addAll(int location, Collection<? extends E> collection); argument 92 * Adds the objects in the specified collection to the end of this {@code List}. The 94 * collection's iterator. 96 * @param collection 108 addAll(Collection<? extends E> collection) argument 139 containsAll(Collection<?> collection) argument 273 removeAll(Collection<?> collection) argument 285 retainAll(Collection<?> collection) argument [all...] |
H A D | MiniEnumSet.java | 126 public boolean addAll(Collection<? extends E> collection) { argument 127 if (collection.isEmpty()) { 130 if (collection instanceof EnumSet) { 131 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 143 return super.addAll(collection); 159 public boolean containsAll(Collection<?> collection) { argument 160 if (collection.isEmpty()) { 163 if (collection instanceof MiniEnumSet) { 164 MiniEnumSet<?> set = (MiniEnumSet<?>) collection; 168 return !(collection instanceo 172 removeAll(Collection<?> collection) argument 196 retainAll(Collection<?> collection) argument [all...] |
H A D | TreeSet.java | 55 * and containing the unique elements in the specified collection. 57 * @param collection 58 * the collection of elements to add. 60 * when an element in the collection does not implement the 61 * Comparable interface, or the elements in the collection 64 public TreeSet(Collection<? extends E> collection) { argument 66 addAll(collection); 115 * Adds the objects in the specified collection to this {@code TreeSet}. 117 * @param collection 118 * the collection o 129 addAll(Collection<? extends E> collection) argument [all...] |
H A D | AbstractList.java | 265 public boolean addAll(int location, Collection<? extends E> collection) { argument 269 collection); 271 size += collection.size(); 282 public boolean addAll(Collection<? extends E> collection) { argument 284 boolean result = fullList.addAll(offset + size, collection); 286 size += collection.size(); 439 * the collection's iterator. 443 * @param collection 455 public boolean addAll(int location, Collection<? extends E> collection) { argument 456 Iterator<? extends E> it = collection [all...] |
H A D | ArrayList.java | 96 * the specified collection. 98 * @param collection 99 * the collection of elements to add. 101 public ArrayList(Collection<? extends E> collection) { argument 102 Object[] a = collection.toArray(); 185 * Adds the objects in the specified collection to this {@code ArrayList}. 187 * @param collection 188 * the collection of objects. 192 @Override public boolean addAll(Collection<? extends E> collection) { argument 193 Object[] newPart = collection 228 addAll(int index, Collection<? extends E> collection) argument [all...] |
H A D | LinkedList.java | 195 * elements contained in the specified {@code collection}. The order of the 197 * iteration order of {@code collection}. 199 * @param collection 200 * the collection of elements to add. 202 public LinkedList(Collection<? extends E> collection) { argument 204 addAll(collection); 264 * Inserts the objects in the specified collection at the specified location 266 * returned from the collection's iterator. 270 * @param collection 271 * the collection o 282 addAll(int location, Collection<? extends E> collection) argument 325 addAll(Collection<? extends E> collection) argument [all...] |
H A D | Vector.java | 104 * {@code collection}. The order of the elements in the new {@code Vector} 105 * is dependent on the iteration order of the seed collection. 107 * @param collection 108 * the collection of elements to add. 110 public Vector(Collection<? extends E> collection) { argument 111 this(collection.size(), 0); 112 Iterator<? extends E> it = collection.iterator(); 161 * Inserts the objects in the specified collection at the specified location 165 * the added collection. 169 * @param collection 176 addAll(int location, Collection<? extends E> collection) argument 211 addAll(Collection<? extends E> collection) argument 295 containsAll(Collection<?> collection) argument 740 removeAll(Collection<?> collection) argument 855 retainAll(Collection<?> collection) argument [all...] |
H A D | Hashtable.java | 605 * Returns a collection of the values contained in this {@code Hashtable}. 606 * The collection is backed by this {@code Hashtable} so changes to one are 607 * reflected by the other. The collection does not support adding. 609 * @return a collection of the values. 926 public boolean removeAll(Collection<?> collection) { argument 928 return super.removeAll(collection); 931 public boolean retainAll(Collection<?> collection) { argument 933 return super.retainAll(collection); 936 public boolean containsAll(Collection<?> collection) { argument 938 return super.containsAll(collection); 981 containsAll(Collection<?> collection) argument 1025 removeAll(Collection<?> collection) argument 1030 retainAll(Collection<?> collection) argument 1035 containsAll(Collection<?> collection) argument [all...] |
/dalvik/libcore/security/src/main/java/java/security/cert/ |
H A D | CollectionCertStoreParameters.java | 30 // Default empty and immutable collection. 36 private final Collection<?> collection; field in class:CollectionCertStoreParameters 39 * Creates a new {@code CollectionCertStoreParameters} without a collection. 41 * The default collection is an empty and unmodifiable {@code Collection}. 44 this.collection = defaultCollection; 49 * collection. 51 * The specified collection is not copied and therefore may be modified at 54 * @param collection 55 * the collection where the {@code Certificate}s and {@code CRL}s 58 * if {@code collection i 60 CollectionCertStoreParameters(Collection<?> collection) argument [all...] |
/dalvik/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestFramework.java | 60 NodeList collection); 66 NamedNodeMap collection); 72 Collection collection); 172 int size(Collection collection); argument 174 int size(NamedNodeMap collection); argument 176 int size(NodeList collection); argument 56 assertSize( DOMTestCase test, String assertID, int expectedSize, NodeList collection) argument 62 assertSize( DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) argument 68 assertSize( DOMTestCase test, String assertID, int expectedSize, Collection collection) argument
|
H A D | DOMTestInnerClass.java | 61 public void assertSize(String assertID, int expectedSize, NodeList collection) { argument 62 test.assertSize(assertID, expectedSize, collection); 66 NamedNodeMap collection) { 67 test.assertSize(assertID, expectedSize, collection); 71 Collection collection) { 72 test.assertSize(assertID, expectedSize, collection); 177 public int size(Collection collection) { argument 178 return test.size(collection); 181 public int size(NamedNodeMap collection) { argument 182 return test.size(collection); 65 assertSize(String assertID, int expectedSize, NamedNodeMap collection) argument 70 assertSize(String assertID, int expectedSize, Collection collection) argument 185 size(NodeList collection) argument [all...] |
H A D | JUnitTestCaseAdapter.java | 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { argument 227 assertEquals(assertID,expectedSize, collection.getLength()); 230 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { argument 231 assertEquals(assertID, expectedSize, collection.getLength()); 234 public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection) { argument 235 assertEquals(assertID, expectedSize, collection.size()); 478 public int size(Collection collection) { argument 479 return collection.size(); 482 public int size(NamedNodeMap collection) { argument 483 return collection 486 size(NodeList collection) argument [all...] |
H A D | DOMTestCase.java | 232 * Asserts that the length of the collection is the expected size. 238 * @param collection 239 * collection 244 NodeList collection) { 245 framework.assertSize(this, assertID, expectedSize, collection); 249 * Asserts that the length of the collection is the expected size. 255 * @param collection 256 * collection 261 NamedNodeMap collection) { 262 framework.assertSize(this, assertID, expectedSize, collection); 241 assertSize( String assertID, int expectedSize, NodeList collection) argument 258 assertSize( String assertID, int expectedSize, NamedNodeMap collection) argument 275 assertSize( String assertID, int expectedSize, Collection collection) argument 957 size(Collection collection) argument 968 size(NamedNodeMap collection) argument 979 size(NodeList collection) argument [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
H A D | DerOutputStream.java | 98 private final void encodeValueCollection(ASN1ValueCollection collection) { argument 109 collection.type.encodeASN(this); 232 private void getValueOfLength(ASN1ValueCollection collection) { argument 235 Object[] cv = collection.getValues(content).toArray(); 246 collection.type.setEncodingContent(this); 254 seqLen += collection.type.getEncodedLength(this);
|
H A D | BerInputStream.java | 737 private final void decodeValueCollection(ASN1ValueCollection collection) argument 743 ASN1Type type = collection.type;
|
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 65 * @param c the collection the elements of which are to be copied into 172 * collection that are not yet part of the list. 174 * @param c the collection from which the potential new elements are 484 * all the elements that are contained in the specified collection 521 * that are contained in the specified collection 621 * array contains all of the elements in the collection 623 * @param c collection with elements 1081 public boolean addAll(int index, Collection collection) { argument 1087 boolean rt = list.addAll(index + start, collection);
|
/dalvik/libcore/security/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 2042 protected Collection<List<?>> collection = null; field in class:X509CertSelectorTest.TestCert 2058 public TestCert(Collection<List<?>> collection) { argument 2059 setCollection(collection); 2111 public void setCollection(Collection<List<?>> collection) { argument 2112 this.collection = collection;
|