/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CollectionCertStoreParameters.java | 81 * @param collection a <code>Collection</code> of 83 * @exception NullPointerException if <code>collection</code> is 86 public CollectionCertStoreParameters(Collection<?> collection) { argument 87 if (collection == null) 89 coll = collection; 137 sb.append(" collection: " + coll + "\n");
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ForEachRemainingTester.java | 50 public static <T> void test_forEachRemaining_list(List<T> collection, T[] initialData) argument 52 test_forEachRemaining(collection, initialData); 55 ListIterator<T> lit = collection.listIterator(1); 66 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) argument 68 collection.addAll(Arrays.asList(initialData)); 71 collection.iterator().forEachRemaining((T i) -> recorder.add(i)); 72 // Note that the collection may not override equals and hashCode. 73 assertEquals(new ArrayList<T>(collection), recorder); 76 Iterator<T> it = collection.iterator(); 88 public static <T> void test_forEachRemaining_NPE(Collection<T> collection, argument 97 test_forEachRemaining_CME(Collection<T> collection, T[] initialData) argument 107 test_forEachRemaining_NPE_list(Collection<T> collection, T[] initialData) argument 116 test_forEachRemaining_CME_list(Collection<T> collection, T[] initialData) argument [all...] |
H A D | OldCollectionsTest.java | 703 private void assertSerialized(Collection<?> collection, String s, final boolean definesEquals) { argument 704 new SerializationTester<Collection<?>>(collection, s) {
|
/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...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | Collections2Test.java | 498 void testCollectionForEach(Collection<Integer> collection) { argument 500 collection.forEach(k -> output.add(k)); 502 assertEquals(new ArrayList<>(collection), output);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Spliterators.java | 401 * Creates a {@code Spliterator} using the given collection's 407 * the <em>fail-fast</em> properties of the collection's iterator, and 411 * @param c The collection 416 * @throws NullPointerException if the given collection is {@code null} 1694 private final Collection<? extends T> collection; // null OK field in class:Spliterators.IteratorSpliterator 1702 * collection's {@link java.util.Collection#iterator()) for traversal, 1706 * @param c the collection 1710 public IteratorSpliterator(Collection<? extends T> collection, int characteristics) { argument 1711 this.collection = collection; [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | TestData.java | 83 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { argument 84 return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parallelStream,
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | TestData.java | 84 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { argument 85 return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parallelStream,
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 91 * Creates a new instance containing the elements of {@code collection}. 94 public CopyOnWriteArrayList(Collection<? extends E> collection) { argument 95 this((E[]) collection.toArray()); 128 public boolean containsAll(Collection<?> collection) { argument 130 return containsAll(collection, snapshot, 0, snapshot.length); 133 static boolean containsAll(Collection<?> collection, Object[] snapshot, int from, int to) { argument 134 for (Object o : collection) { 286 public synchronized boolean addAll(Collection<? extends E> collection) { argument 287 return addAll(elements.length, collection); 290 public synchronized boolean addAll(int index, Collection<? extends E> collection) { argument 310 addAllAbsent(Collection<? extends E> collection) argument 362 removeAll(Collection<?> collection) argument 366 retainAll(Collection<?> collection) argument 417 removeOrRetain(Collection<?> collection, boolean retain, int from, int to) argument 592 containsAll(Collection<?> collection) argument 642 addAll(int index, Collection<? extends E> collection) argument 653 addAll(Collection<? extends E> collection) argument 680 removeAll(Collection<?> collection) argument 689 retainAll(Collection<?> collection) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | AbstractCookiesTest.java | 742 private void assertContains(Collection<String> collection, String element) { argument 743 for (String c : collection) { 748 fail("No " + element + " in " + collection); 751 private void assertContainsAll(Collection<String> collection, String... toFind) { argument 753 assertContains(collection, s);
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 1620 protected Collection<List<?>> collection = null; field in class:X509CertSelectorTest.TestCert 1630 public TestCert(Collection<List<?>> collection) { argument 1631 setCollection(collection); 1683 public void setCollection(Collection<List<?>> collection) { argument 1684 this.collection = collection;
|