/libcore/luni/src/main/java/java/util/ |
D | MiniEnumSet.java | 121 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 122 if (collection.isEmpty()) { in addAll() 125 if (collection instanceof EnumSet) { in addAll() 126 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 in addAll() 136 return super.addAll(collection); in addAll() 152 public boolean containsAll(Collection<?> collection) { in containsAll() argument 153 if (collection.isEmpty()) { in containsAll() 156 if (collection instanceof MiniEnumSet) { in containsAll() 157 MiniEnumSet<?> set = (MiniEnumSet<?>) collection; in containsAll() 161 return !(collection instanceof EnumSet) && super.containsAll(collection); in containsAll() [all …]
|
D | HugeEnumSet.java | 137 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 138 if (collection.isEmpty() || collection == this) { in addAll() 142 if (collection instanceof EnumSet) { in addAll() 143 EnumSet<?> set = (EnumSet) collection; // raw type due to javac bug 6548436 in addAll() 159 return super.addAll(collection); in addAll() 210 public boolean containsAll(Collection<?> collection) { in containsAll() argument 211 if (collection.isEmpty()) { in containsAll() 214 if (collection instanceof HugeEnumSet) { in containsAll() 215 HugeEnumSet<?> set = (HugeEnumSet<?>) collection; in containsAll() 226 return !(collection instanceof EnumSet) && super.containsAll(collection); in containsAll() [all …]
|
D | AbstractCollection.java | 72 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 74 Iterator<? extends E> it = collection.iterator(); in addAll() 164 public boolean containsAll(Collection<?> collection) { in containsAll() argument 165 Iterator<?> it = collection.iterator(); in containsAll() 273 public boolean removeAll(Collection<?> collection) { in removeAll() argument 277 if (collection.contains(it.next())) { in removeAll() 314 public boolean retainAll(Collection<?> collection) { in retainAll() argument 318 if (!collection.contains(it.next())) { in retainAll()
|
D | List.java | 89 public boolean addAll(int location, Collection<? extends E> collection); in addAll() argument 108 public boolean addAll(Collection<? extends E> collection); in addAll() argument 139 public boolean containsAll(Collection<?> collection); in containsAll() argument 273 public boolean removeAll(Collection<?> collection); in removeAll() argument 285 public boolean retainAll(Collection<?> collection); in retainAll() argument
|
D | Collection.java | 107 public boolean addAll(Collection<? extends E> collection); in addAll() argument 159 public boolean containsAll(Collection<?> collection); in containsAll() argument 245 public boolean removeAll(Collection<?> collection); in removeAll() argument 269 public boolean retainAll(Collection<?> collection); in retainAll() argument
|
D | Set.java | 58 public boolean addAll(Collection<? extends E> collection); in addAll() argument 88 public boolean containsAll(Collection<?> collection); in containsAll() argument 152 public boolean removeAll(Collection<?> collection); in removeAll() argument 164 public boolean retainAll(Collection<?> collection); in retainAll() argument
|
D | LinkedHashSet.java | 78 public LinkedHashSet(Collection<? extends E> collection) { in LinkedHashSet() argument 79 super(new LinkedHashMap<E, HashSet<E>>(collection.size() < 6 ? 11 in LinkedHashSet() 80 : collection.size() * 2)); in LinkedHashSet() 81 for (E e : collection) { in LinkedHashSet()
|
D | AbstractSet.java | 97 public boolean removeAll(Collection<?> collection) { in removeAll() argument 99 if (size() <= collection.size()) { in removeAll() 102 if (collection.contains(it.next())) { in removeAll() 108 Iterator<?> it = collection.iterator(); in removeAll()
|
D | Vector.java | 110 public Vector(Collection<? extends E> collection) { in Vector() argument 111 this(collection.size(), 0); in Vector() 112 Iterator<? extends E> it = collection.iterator(); in Vector() 176 public synchronized boolean addAll(int location, Collection<? extends E> collection) { in addAll() argument 178 int size = collection.size(); in addAll() 191 Iterator<? extends E> it = collection.iterator(); in addAll() 210 public synchronized boolean addAll(Collection<? extends E> collection) { in addAll() argument 211 return addAll(elementCount, collection); in addAll() 294 public synchronized boolean containsAll(Collection<?> collection) { in containsAll() argument 295 return super.containsAll(collection); in containsAll() [all …]
|
D | HashSet.java | 73 public HashSet(Collection<? extends E> collection) { in HashSet() argument 74 this(new HashMap<E, HashSet<E>>(collection.size() < 6 ? 11 : collection in HashSet() 76 for (E e : collection) { in HashSet()
|
D | AbstractList.java | 259 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() argument 263 collection); in addAll() 265 size += collection.size(); in addAll() 276 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 278 boolean result = fullList.addAll(offset + size, collection); in addAll() 280 size += collection.size(); in addAll() 448 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() argument 449 Iterator<? extends E> it = collection.iterator(); in addAll() 453 return !collection.isEmpty(); in addAll()
|
D | Collections.java | 368 SynchronizedCollection(Collection<E> collection) { 369 c = collection; 373 SynchronizedCollection(Collection<E> collection, Object mutex) { 374 c = collection; 384 @Override public boolean addAll(Collection<? extends E> collection) { 386 return c.addAll(collection); 402 @Override public boolean containsAll(Collection<?> collection) { 404 return c.containsAll(collection); 426 @Override public boolean removeAll(Collection<?> collection) { 428 return c.removeAll(collection); [all …]
|
D | AbstractSequentialList.java | 41 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() argument 43 Iterator<? extends E> colIt = collection.iterator(); in addAll()
|
D | LinkedList.java | 259 public LinkedList(Collection<? extends E> collection) { in LinkedList() argument 261 addAll(collection); in LinkedList() 342 public boolean addAll(int location, Collection<? extends E> collection) { in addAll() argument 346 int adding = collection.size(); in addAll() 350 Collection<? extends E> elements = (collection == this) ? in addAll() 351 new ArrayList<E>(collection) : collection; in addAll() 385 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 386 int adding = collection.size(); in addAll() 390 Collection<? extends E> elements = (collection == this) ? in addAll() 391 new ArrayList<E>(collection) : collection; in addAll()
|
D | Hashtable.java | 921 public boolean removeAll(Collection<?> collection) { in removeAll() argument 923 return super.removeAll(collection); in removeAll() 926 public boolean retainAll(Collection<?> collection) { in retainAll() argument 928 return super.retainAll(collection); in retainAll() 931 public boolean containsAll(Collection<?> collection) { in containsAll() argument 933 return super.containsAll(collection); in containsAll() 976 public boolean containsAll(Collection<?> collection) { in containsAll() argument 978 return super.containsAll(collection); in containsAll() 1020 public boolean removeAll(Collection<?> collection) { in removeAll() argument 1022 return super.removeAll(collection); in removeAll() [all …]
|
D | TreeSet.java | 66 public TreeSet(Collection<? extends E> collection) { in TreeSet() argument 68 addAll(collection); in TreeSet() 131 public boolean addAll(Collection<? extends E> collection) { in addAll() argument 132 return super.addAll(collection); in addAll()
|
/libcore/luni/src/main/java/java/security/cert/ |
D | CollectionCertStoreParameters.java | 36 private final Collection<?> collection; field in CollectionCertStoreParameters 44 this.collection = defaultCollection; in CollectionCertStoreParameters() 60 public CollectionCertStoreParameters(Collection<?> collection) { in CollectionCertStoreParameters() argument 61 if (collection == null) { in CollectionCertStoreParameters() 64 this.collection = collection; in CollectionCertStoreParameters() 89 return collection; in getCollection()
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestInnerClass.java | 61 public void assertSize(String assertID, int expectedSize, NodeList collection) { in assertSize() argument 62 test.assertSize(assertID, expectedSize, collection); in assertSize() 66 NamedNodeMap collection) { in assertSize() argument 67 test.assertSize(assertID, expectedSize, collection); in assertSize() 71 Collection collection) { in assertSize() argument 72 test.assertSize(assertID, expectedSize, collection); in assertSize() 177 public int size(Collection collection) { in size() argument 178 return test.size(collection); in size() 181 public int size(NamedNodeMap collection) { in size() argument 182 return test.size(collection); in size() [all …]
|
D | DOMTestFramework.java | 60 NodeList collection); in assertSize() argument 66 NamedNodeMap collection); in assertSize() argument 72 Collection collection); in assertSize() argument 172 int size(Collection collection); in size() argument 174 int size(NamedNodeMap collection); in size() argument 176 int size(NodeList collection); in size() argument
|
D | DOMTestCase.java | 244 NodeList collection) { in assertSize() argument 245 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 261 NamedNodeMap collection) { in assertSize() argument 262 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 278 Collection collection) { in assertSize() argument 279 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 957 public int size(Collection collection) { in size() argument 958 return framework.size(collection); in size() 968 public int size(NamedNodeMap collection) { in size() argument 969 return framework.size(collection); in size() [all …]
|
D | JUnitTestCaseAdapter.java | 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { in assertSize() argument 227 assertEquals(assertID,expectedSize, collection.getLength()); in assertSize() 230 …lic void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { in assertSize() argument 231 assertEquals(assertID, expectedSize, collection.getLength()); in assertSize() 234 …public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection)… in assertSize() argument 235 assertEquals(assertID, expectedSize, collection.size()); in assertSize() 478 public int size(Collection collection) { in size() argument 479 return collection.size(); in size() 482 public int size(NamedNodeMap collection) { in size() argument 483 return collection.getLength(); in size() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 90 public CopyOnWriteArrayList(Collection<? extends E> collection) { in CopyOnWriteArrayList() argument 91 this((E[]) collection.toArray()); in CopyOnWriteArrayList() 124 public boolean containsAll(Collection<?> collection) { in containsAll() argument 126 return containsAll(collection, snapshot, 0, snapshot.length); in containsAll() 129 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { in containsAll() argument 130 for (Object o : collection) { in containsAll() 282 public synchronized boolean addAll(Collection<? extends E> collection) { in addAll() argument 283 return addAll(elements.length, collection); in addAll() 286 public synchronized boolean addAll(int index, Collection<? extends E> collection) { in addAll() argument 287 Object[] toAdd = collection.toArray(); in addAll() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumMapTest.java | 991 Collection collection = enumColorMap.values(); in test_values() local 994 assertSame("Should be same", collection1, collection); in test_values() 996 collection.add(new Integer(1)); in test_values() 1002 assertTrue("Returned false for contained object", collection in test_values() 1004 assertTrue("Returned false for contained object", collection in test_values() 1006 assertFalse("Returned true for uncontained object", collection in test_values() 1009 assertTrue("Returned false when the object can be removed", collection in test_values() 1011 assertFalse("Returned true for uncontained object", collection in test_values() 1014 collection.remove(null)); in test_values() 1019 assertTrue("Returned false for contained object", collection in test_values() [all …]
|
D | ArrayListTest.java | 90 Collection<String> collection = shrinksOnSize("A", "B", "C", "D"); in testConstructorWithConcurrentCollection() local 91 ArrayList<String> list = new ArrayList<String>(collection); in testConstructorWithConcurrentCollection() 894 ArrayList collection = new ArrayList(); in test_addAll() local 895 collection.add("1"); in test_addAll() 896 collection.add("2"); in test_addAll() 897 collection.add("3"); in test_addAll() 898 assertEquals(3, collection.size()); in test_addAll() 900 list.addAll(0, collection); in test_addAll() 907 collection.add("4"); in test_addAll() 908 collection.add("5"); in test_addAll() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | DerOutputStream.java | 89 private void encodeValueCollection(ASN1ValueCollection collection) { in encodeValueCollection() argument 97 collection.type.encodeASN(this); in encodeValueCollection() 199 private void getValueOfLength(ASN1ValueCollection collection) { in getValueOfLength() argument 201 Object[] cv = collection.getValues(content).toArray(); in getValueOfLength() 212 collection.type.setEncodingContent(this); in getValueOfLength() 220 seqLen += collection.type.getEncodedLength(this); in getValueOfLength()
|