/libcore/luni/src/test/java/libcore/java/util/ |
D | RemoveIfTester.java | 19 import java.util.Collection; 35 public static void runBasicRemoveIfTests(Supplier<Collection<Integer>> supp) { in runBasicRemoveIfTests() 36 Collection<Integer> integers = supp.get(); in runBasicRemoveIfTests() 56 public static void runBasicRemoveIfTestsUnordered(Supplier<Collection<Integer>> supp) { in runBasicRemoveIfTestsUnordered() 57 Collection<Integer> integers = supp.get(); in runBasicRemoveIfTestsUnordered() 75 public static void runRemoveIfOnEmpty(Supplier<Collection<Integer>> supp) { in runRemoveIfOnEmpty() 82 public static void testRemoveIfNPE(Supplier<Collection<Integer>> supp) { in testRemoveIfNPE() 89 public static void testRemoveIfCME(Supplier<Collection<Integer>> supp) { in testRemoveIfCME() 90 Collection<Integer> c = supp.get(); in testRemoveIfCME()
|
D | ForEachRemainingTester.java | 21 import java.util.Collection; 36 public static <T> void runTests(Supplier<? extends Collection<T>> collectionSupplier, in runTests() 42 Collection<T> collection = collectionSupplier.get(); in runTests() 67 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) in test_forEachRemaining() 89 public static <T> void test_forEachRemaining_NPE(Collection<T> collection, T[] initialData) in test_forEachRemaining_NPE() 98 public static <T> void test_forEachRemaining_CME(Collection<T> collection, T[] initialData) in test_forEachRemaining_CME() 108 public static <T> void test_forEachRemaining_NPE_list(Collection<T> collection, T[] initialData) in test_forEachRemaining_NPE_list() 117 public static <T> void test_forEachRemaining_CME_list(Collection<T> collection, T[] initialData) in test_forEachRemaining_CME_list()
|
D | SequencedCollectionTest.java | 25 import java.util.Collection; 73 public boolean containsAll(Collection<?> c) { in containsAll() 78 public boolean addAll(Collection<? extends String> c) { in addAll() 83 public boolean removeAll(Collection<?> c) { in removeAll() 88 public boolean retainAll(Collection<?> c) { in retainAll()
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | HotPotatoes.java | 30 package test.java.util.Collection; 35 import java.util.Collection; 68 private static void testImplementation(Class<? extends Collection> implClazz) throws Throwable { in testImplementation() 72 final Constructor<? extends Collection> constr in testImplementation() 73 = implClazz.getConstructor(Collection.class); in testImplementation() 74 final Collection<Object> coll in testImplementation() 80 private static void testPotato(Class<? extends Collection> implClazz, in testPotato() 90 final Constructor<? extends Collection> constr in testPotato() 91 = implClazz.getConstructor(Collection.class); in testPotato() 104 Collection<?> coll = constr.newInstance(list); in testPotato()
|
D | CollectionDefaults.java | 23 package test.java.util.Collection; 26 import java.util.Collection; 51 import test.java.util.Collection.testlibrary.CollectionAsserts; 52 import test.java.util.Collection.testlibrary.CollectionSupplier; 53 import test.java.util.Collection.testlibrary.ExtendsAbstractCollection; 54 import test.java.util.Collection.testlibrary.ExtendsAbstractList; 55 import test.java.util.Collection.testlibrary.ExtendsAbstractSet; 71 …private static final List<Function<Collection<Integer>, Collection<Integer>>> TEST_SUPPLIERS = Arr… 148 …@SuppressWarnings("unchecked") final CollectionSupplier<Collection<Integer>> supplier = new Collec… in testForEach() 151 for (final CollectionSupplier.TestCase<Collection<Integer>> test : supplier.get()) { in testForEach() [all …]
|
D | BiggernYours.java | 30 package test.java.util.Collection; 33 import java.util.Collection; 61 static void compareCollections(Collection c1, Collection c2) { in compareCollections() 115 abstract void frob(Collection c); in frob() 120 void frob(Collection c) { in adder() 140 static void testCollections(Collection c1, Collection c2) { 144 for (Collection c : new Collection[]{c1, c2}) {
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestFramework.java | 15 import java.util.Collection; 72 Collection collection); in assertSize() 83 Collection expected, in assertEqualsIgnoreCase() 84 Collection actual); in assertEqualsIgnoreCase() 119 Collection expected, in assertEquals() 120 Collection actual); in assertEquals() 156 boolean equalsIgnoreCase(Collection expected, Collection actual); in equalsIgnoreCase() 168 boolean equals(Collection expected, Collection actual); in equals() 172 int size(Collection collection); in size()
|
D | DOMTestInnerClass.java | 15 import java.util.Collection; 71 Collection collection) { in assertSize() 80 public void assertEqualsIgnoreCase(String assertID, Collection expected, in assertEqualsIgnoreCase() 81 Collection actual) { in assertEqualsIgnoreCase() 106 public void assertEquals(String assertID, Collection expected, in assertEquals() 111 public void assertEquals(String assertID, Collection expected, in assertEquals() 112 Collection actual) { in assertEquals() 149 public boolean equalsIgnoreCase(Collection expected, Collection actual) { in equalsIgnoreCase() 169 public boolean equals(Collection expected, Collection actual) { in equals() 177 public int size(Collection collection) { in size()
|
D | DOMTestCase.java | 18 import java.util.Collection; 278 Collection collection) { in assertSize() 312 Collection expected, in assertEqualsIgnoreCase() 313 Collection actual) { in assertEqualsIgnoreCase() 377 private List toUpperCase(Collection expected) { in toUpperCase() 400 Collection expected, in assertEqualAutoCase() 401 Collection actual) { in assertEqualAutoCase() 520 Collection expected, in assertEquals() 522 Collection actualList = new ArrayList(); in assertEquals() 543 Collection expected, in assertEquals() [all …]
|
/libcore/ojluni/src/test/java/util/Collection/testlibrary/ |
D | CollectionSupplier.java | 23 package test.java.util.Collection.testlibrary; 39 import java.util.Collection; 48 public final class CollectionSupplier<C extends Collection<Integer>> implements Supplier<Iterable<C… 50 private final List<Function<Collection<Integer>, C>> suppliers; 56 public static final class TestCase<C extends Collection<Integer>> { 65 public Function<Collection<Integer>, C> supplier; 83 public TestCase(String name, Function<Collection<Integer>, C> supplier, C collection) { in TestCase() 124 public CollectionSupplier(List<Function<Collection<Integer>, C>> suppliers, int size) { in CollectionSupplier() 131 final Collection<TestCase<C>> cases = new LinkedList<>(); in get() 132 for (final Function<Collection<Integer>, C> supplier : suppliers) in get() [all …]
|
D | ExtendsAbstractCollection.java | 23 package test.java.util.Collection.testlibrary; 27 import java.util.Collection; 42 protected final Collection<E> coll; 48 public ExtendsAbstractCollection(Collection<E> source) { in ExtendsAbstractCollection() 53 protected ExtendsAbstractCollection(Supplier<Collection<E>> backer) { in ExtendsAbstractCollection()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | SyncSubMutexes.java | 46 public void testCollections(Collection<String> instance) { in testCollections() 152 private static final Collection<String> BASE_COLLECTION = Collections.unmodifiableCollection( 165 public static Collection<Object[]> makeCollections() { in makeCollections() 166 Collection<Object[]> instances = new ArrayList<>(); in makeCollections() 173 public static Collection<Object[]> makeLists() { in makeLists() 174 Collection<Object[]> instances = new ArrayList<>(); in makeLists() 181 public static Collection<Object[]> makeSets() { in makeSets() 182 Collection<Object[]> instances = new ArrayList<>(); in makeSets() 189 public static Collection<Object[]> makeSortedSets() { in makeSortedSets() 190 Collection<Object[]> instances = new ArrayList<>(); in makeSortedSets() [all …]
|
D | EnumerationAsIterator.java | 37 import java.util.Collection; 50 static Object[] of(String description, Supplier<Enumeration<?>> s, Collection<?> exp) { in of() 54 static Object[] of(String description, Collection<?> c, Collection<?> exp) { in of() 128 public void consumeByNext(String description, Supplier<Enumeration<?>> s, Collection<?> exp) { 151 Collection<?> exp) { 171 Collection<?> exp) { 193 public void contents(String description, Supplier<Enumeration<?>> s, Collection<?> exp) { 207 Collection<?> exp) { 217 Collection<?> exp) {
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | SliceSpliteratorTest.java | 30 import java.util.Collection; 44 Collection<T> source; 46 UnorderedContentAsserter(Collection<T> source) { in UnorderedContentAsserter() 51 … public void assertContents(Collection<T> actual, Collection<T> expected, boolean isOrdered) { in assertContents() 74 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 87 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 100 … final Collection<Long> source = LongStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 113 …final Collection<Double> source = LongStream.range(0, size).asDoubleStream().boxed().collect(toLi… in sliceSpliteratorDataProvider() 129 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() 143 … final Collection<Integer> source = IntStream.range(0, size).boxed().collect(toList()); in sliceSpliteratorDataProvider() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ExecutorService.java | 38 import java.util.Collection; 277 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll() 308 <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, in invokeAll() 331 <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny() 357 <T> T invokeAny(Collection<? extends Callable<T>> tasks, in invokeAny()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | MapWithCollisionsProviders.java | 27 import java.util.Collection; 188 private static <T> Collection<Object[]> makeMapsMoreTypes(String desc, in makeMapsMoreTypes() 191 Collection<Object[]> cases = new ArrayList<>(); in makeMapsMoreTypes() 207 private static <T> Collection<Object[]> makeMapsHashMap(String desc, in makeMapsHashMap() 210 Collection<Object[]> cases = new ArrayList<>(); in makeMapsHashMap() 218 private static <T> Collection<Object[]> makeMaps(String desc, T[] keys, T val) { in makeMaps() 219 Collection<Object[]> cases = new ArrayList<>(); in makeMaps() 225 private static <T> Collection<Object[]> makeObjectsCases(String desc, T[] keys) { in makeObjectsCases() 229 private static <T> Collection<Object[]> makeStringsCases(String desc, in makeStringsCases() 234 private static final Collection<Object[]> mapsWithObjectsCases [all …]
|
D | MapBinToFromTreeTest.java | 28 import java.util.Collection; 86 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testPutThenTraverse() 92 Collection<Integer> actual = m.keySet().stream().map(e -> e.value).collect(c); in testPutThenTraverse() 93 Collection<Integer> expected = IntStream.range(0, s).boxed().collect(c); in testPutThenTraverse() 114 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testRemoveThenTraverse() 117 Collection<Integer> actual = m.keySet().stream().map(e -> e.value).collect(c); in testRemoveThenTraverse() 118 Collection<Integer> expected = IntStream.range(i + 1, SIZE).boxed().collect(c); in testRemoveThenTraverse() 150 Collector<Integer, ?, ? extends Collection<Integer>> c = getCollector(m); in testUntreeifyOnResizeWithTraverse() 158 Collection<Integer> actual = m.keySet().stream().map(e -> e.value).collect(c); in testUntreeifyOnResizeWithTraverse() 159 Collection<Integer> expected = IntStream.rangeClosed(0, i).boxed().collect(c); in testUntreeifyOnResizeWithTraverse() [all …]
|
/libcore/ojluni/src/test/java/util/PriorityQueue/ |
D | NoNulls.java | 43 import java.util.Collection; 72 final Collection<String> nullCollection = new ArrayList<>(); in test() 96 new PriorityQueue<String>((Collection<String>) nullPriorityQueue); in test() 99 new PriorityBlockingQueue<String>((Collection<String>) nullPriorityQueue); in test() 110 new PriorityQueue<String>((Collection<String>) nullSortedSet); in test() 113 new PriorityBlockingQueue<String>((Collection<String>) nullSortedSet); in test() 160 new PriorityQueue<String>((Collection<String>) nullPriorityQueue); in test() 163 new PriorityBlockingQueue<String>((Collection<String>) nullPriorityQueue); in test() 174 new PriorityQueue<String>((Collection<String>) nullSortedSet); in test() 177 new PriorityBlockingQueue<String>((Collection<String>) nullSortedSet); in test()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collection.java | 253 public interface Collection<E> extends Iterable<E> { interface 496 boolean containsAll(Collection<?> c); in containsAll() 522 boolean addAll(Collection<? extends E> c); in addAll() 547 boolean removeAll(Collection<?> c); in removeAll() 606 boolean retainAll(Collection<?> c); in retainAll()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CollectionCertStoreParameters.java | 29 import java.util.Collection; 58 private Collection<?> coll; 86 public CollectionCertStoreParameters(Collection<?> collection) { in CollectionCertStoreParameters() 110 public Collection<?> getCollection() { in getCollection()
|
D | CertStoreSpi.java | 29 import java.util.Collection; 95 public abstract Collection<? extends Certificate> engineGetCertificates in engineGetCertificates() 123 public abstract Collection<? extends CRL> engineGetCRLs in engineGetCRLs()
|
/libcore/ojluni/src/test/java/util/SequencedCollection/ |
D | SimpleList.java | 41 public SimpleList(Collection<? extends E> c) { in SimpleList() 65 public boolean addAll(Collection<? extends E> c) { in addAll() 77 public boolean containsAll(Collection<?> c) { in containsAll() 93 public boolean removeAll(Collection<?> c) { in removeAll() 97 public boolean retainAll(Collection<?> c) { in retainAll() 119 public boolean addAll(int index, Collection<? extends E> c) { in addAll()
|
D | SimpleSortedSet.java | 40 public SimpleSortedSet(Collection<? extends E> c) { in SimpleSortedSet() 68 public boolean addAll(Collection<? extends E> c) { in addAll() 80 public boolean containsAll(Collection<?> c) { in containsAll() 96 public boolean removeAll(Collection<?> c) { in removeAll() 100 public boolean retainAll(Collection<?> c) { in retainAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | AbstractCollection.annotated.java | 31 public abstract class AbstractCollection<E> implements java.util.Collection<E> { 51 public boolean containsAll(@libcore.util.NonNull java.util.Collection<?> c) { throw new RuntimeExce… in containsAll() 53 public boolean addAll(@libcore.util.NonNull java.util.Collection<? extends @libcore.util.NullFromTy… in addAll() 55 public boolean removeAll(@libcore.util.NonNull java.util.Collection<?> c) { throw new RuntimeExcept… in removeAll() 57 public boolean retainAll(@libcore.util.NonNull java.util.Collection<?> c) { throw new RuntimeExcept… in retainAll()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 48 public CopyOnWriteArraySet(java.util.Collection<? extends E> c) { in CopyOnWriteArraySet() 84 public boolean containsAll(java.util.Collection<?> c) { in containsAll() 92 public boolean addAll(java.util.Collection<? extends E> c) { in addAll() 96 public boolean removeAll(java.util.Collection<?> c) { in removeAll() 100 public boolean retainAll(java.util.Collection<?> c) { in retainAll()
|