Searched defs:collection (Results 1 - 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/java/security/cert/
H A DCollectionCertStoreParameters.java81 * @param collection a {@code Collection} of
83 * @exception NullPointerException if {@code collection} 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 DForEachRemainingTester.java50 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 DOldCollectionsTest.java703 private void assertSerialized(Collection<?> collection, String s, final boolean definesEquals) { argument
704 new SerializationTester<Collection<?>>(collection, s) {
H A DCollectionsTest.java1215 Collection<V> collection, List<V> elementsInOrder) {
1216 Spliterator<V> spliterator = collection.spliterator();
1219 SpliteratorTester.runSizedTests(collection, elementsInOrder.size());
1222 SpliteratorTester.runSubSizedTests(collection, elementsInOrder.size());
1224 SpliteratorTester.runOrderedTests(collection);
1214 check_orderedCollection( Collection<V> collection, List<V> elementsInOrder) argument
/libcore/dom/src/test/java/org/w3c/domts/
H A DDOMTestFramework.java60 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 DDOMTestInnerClass.java61 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 DJUnitTestCaseAdapter.java226 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 DDOMTestCase.java232 * 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 DCollections2Test.java498 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 DSpliterators.java401 * 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 DTestData.java83 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 DTestData.java84 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/test/java/libcore/java/net/
H A DAbstractCookiesTest.java734 private void assertContains(Collection<String> collection, String element) { argument
735 for (String c : collection) {
740 fail("No " + element + " in " + collection);
743 private void assertContainsAll(Collection<String> collection, String... toFind) { argument
745 assertContains(collection, s);
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CertSelectorTest.java1622 protected Collection<List<?>> collection = null; field in class:X509CertSelectorTest.TestCert
1632 public TestCert(Collection<List<?>> collection) { argument
1633 setCollection(collection);
1685 public void setCollection(Collection<List<?>> collection) { argument
1686 this.collection = collection;

Completed in 475 milliseconds