/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | RuleBasedCollatorTest.java | 45 RuleBasedCollator coll = new RuleBasedCollator(rule); in testHashCode() local 47 assertEquals(coll.hashCode(), same.hashCode()); in testHashCode() 51 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in testClone() local 52 RuleBasedCollator clone = (RuleBasedCollator) coll.clone(); in testClone() 53 assertNotSame(coll, clone); in testClone() 54 assertEquals(coll.getRules(), clone.getRules()); in testClone() 55 assertEquals(coll.getDecomposition(), clone.getDecomposition()); in testClone() 56 assertEquals(coll.getStrength(), clone.getStrength()); in testClone() 61 RuleBasedCollator coll = new RuleBasedCollator(rule); in testEqualsObject() local 63 assertEquals(Collator.TERTIARY, coll.getStrength()); in testEqualsObject() [all …]
|
D | CollationElementIteratorTest.java | 36 private RuleBasedCollator coll; field in CollationElementIteratorTest 40 coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in setUp() 47 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testGetOffset() 61 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testNext() 85 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in testPrevious() local 87 CollationElementIterator iterator = coll in testPrevious() 113 CollationElementIterator iterator = coll.getCollationElementIterator(text); in testReset()
|
/libcore/ojluni/src/test/java/util/Collection/testlibrary/ |
D | ExtendsAbstractCollection.java | 42 protected final Collection<E> coll; field in ExtendsAbstractCollection 50 coll.addAll(source); in ExtendsAbstractCollection() 54 this.coll = backer.get(); in ExtendsAbstractCollection() 58 return coll.add(element); in add() 62 return coll.remove(element); in remove() 67 Iterator<E> source = coll.iterator(); in iterator() 84 return coll.size(); in size()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | CollatorTest.java | 101 RuleBasedCollator coll = new RuleBasedCollator(rule); in testEqualsObject() local 103 assertEquals(Collator.TERTIARY, coll.getStrength()); in testEqualsObject() 104 assertEquals(Collator.NO_DECOMPOSITION, coll.getDecomposition()); in testEqualsObject() 106 assertTrue(coll.equals(other)); in testEqualsObject() 108 coll.setStrength(Collator.PRIMARY); in testEqualsObject() 109 assertFalse(coll.equals(other)); in testEqualsObject() 111 coll.setStrength(Collator.TERTIARY); in testEqualsObject() 112 coll.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in testEqualsObject() 114 assertFalse(coll.equals(other)); in testEqualsObject() 146 RuleBasedCollator coll = (RuleBasedCollator) Collator.getInstance(l); [all …]
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CollectionCertStoreParameters.java | 58 private Collection<?> coll; field in CollectionCertStoreParameters 89 coll = collection; in CollectionCertStoreParameters() 98 coll = Collections.EMPTY_SET; in CollectionCertStoreParameters() 111 return coll; in getCollection() 137 sb.append(" collection: " + coll + "\n"); in toString()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | MethodHandlesAsCollectorTest.java | 110 for (int coll = 1; coll < nargs - pos; ++coll) { in testAsCollector1() 111 … if (coll > 4 && coll != 7 && coll != 11 && coll != 20 && coll < nargs - pos - 4) continue; in testAsCollector1() 112 testAsCollector(argType, pos, coll, nargs); in testAsCollector1()
|
D | RicochetTest.java | 152 MethodHandle coll = id.asCollector(int[].class, nargs); in testIntSpreads() local 155 case 0: args2 = (int[]) coll.invokeExact(); break; in testIntSpreads() 156 case 1: args2 = (int[]) coll.invokeExact(args[0]); break; in testIntSpreads() 157 case 2: args2 = (int[]) coll.invokeExact(args[0], args[1]); break; in testIntSpreads() 158 case 3: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2]); break; in testIntSpreads() 159 … case 4: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3]); break; in testIntSpreads() 160 … case 5: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3], args[4]); break; in testIntSpreads() 163 MethodHandle mh = coll.asSpreader(int[].class, nargs); in testIntSpreads() 181 MethodHandle coll = id.asCollector(byte[].class, nargs); in testByteSpreads() local 184 case 0: args2 = (byte[]) coll.invokeExact(); break; in testByteSpreads() [all …]
|
/libcore/ojluni/src/test/java/util/Collection/ |
D | HotPotatoes.java | 74 final Collection<Object> coll in testImplementation() local 76 coll.add(1); in testImplementation() 77 Assert.assertEquals(coll.toString(), "[1]"); in testImplementation() 104 Collection<?> coll = constr.newInstance(list); in testPotato() local 105 Object[] elts = coll.toArray(); in testPotato()
|
D | CollectionDefaults.java | 81 (coll) -> new java.util.concurrent.ArrayBlockingQueue<Integer>( 82 3 * SIZE, false, coll),
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 330 public boolean containsAll(Collection<?> coll) { in ungrowableSet() argument 331 return s.containsAll(coll); in ungrowableSet() 333 public boolean removeAll(Collection<?> coll) { in ungrowableSet() argument 334 return s.removeAll(coll); in ungrowableSet() 336 public boolean retainAll(Collection<?> coll) { in ungrowableSet() argument 337 return s.retainAll(coll); in ungrowableSet() 343 public boolean addAll(Collection<? extends E> coll) { in ungrowableSet() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | Set.java | 728 static <E> Set<E> copyOf(Collection<? extends E> coll) { in copyOf() argument 729 if (coll instanceof ImmutableCollections.AbstractImmutableSet) { in copyOf() 730 return (Set<E>)coll; in copyOf() 732 return (Set<E>)Set.of(new HashSet<>(coll).toArray()); in copyOf()
|
D | Collections.java | 668 public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll) { in min() argument 669 Iterator<? extends T> i = coll.iterator(); in min() 704 public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) { in min() argument 706 return (T)min((Collection<Comparable<Object>>) coll); in min() 708 Iterator<? extends T> i = coll.iterator(); in min() 741 public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll) { in max() argument 742 Iterator<? extends T> i = coll.iterator(); in max() 777 public static <T> T max(Collection<? extends T> coll, Comparator<? super T> comp) { in max() argument 779 return (T)max((Collection<Comparable<Object>>) coll); in max() 781 Iterator<? extends T> i = coll.iterator(); in max() [all …]
|
D | List.java | 1211 static <E> List<E> copyOf(Collection<? extends E> coll) { in copyOf() argument 1212 return ImmutableCollections.listCopy(coll); in copyOf()
|
D | ImmutableCollections.java | 175 static <E> List<E> listCopy(Collection<? extends E> coll) { in listCopy() argument 176 if (coll instanceof List12 || (coll instanceof ListN && ! ((ListN<?>)coll).allowNulls)) { in listCopy() 177 return (List<E>)coll; in listCopy() 179 return (List<E>)List.of(coll.toArray()); // implicit nullcheck of coll in listCopy()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertStore1Test.java | 386 Collection<?> coll; in testCertStore15() local 388 coll = certS[i].getCertificates(null); in testCertStore15() 389 assertTrue("Result collection not empty",coll.isEmpty()); in testCertStore15() 390 coll = certS[i].getCRLs(null); in testCertStore15() 391 assertTrue("Result collection not empty",coll.isEmpty()); in testCertStore15()
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | Collections.annotated.java | 58 … java.lang.Comparable<? super T>> T min(java.util.Collection<? extends T> coll) { throw new Runtim… in min() argument 60 public static <T> T min(java.util.Collection<? extends T> coll, java.util.Comparator<? super T> com… in min() argument 62 … java.lang.Comparable<? super T>> T max(java.util.Collection<? extends T> coll) { throw new Runtim… in max() argument 64 public static <T> T max(java.util.Collection<? extends T> coll, java.util.Comparator<? super T> com… in max() argument
|
D | List.annotated.java | 128 public static <E> java.util.List<E> copyOf(java.util.Collection<? extends E> coll) { throw new Runt… in copyOf() argument
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DistinctOpTest.java | 119 SortedTestData(List<T> coll) { in SortedTestData() argument 120 super("SortedTestData", coll, in SortedTestData()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 109 java.util.Collection<? extends T> coll) { in min() argument 114 java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { in min() argument 119 java.util.Collection<? extends T> coll) { in max() argument 124 java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { in max() argument 583 public boolean containsAll(java.util.Collection<?> coll) { in containsAll() argument 587 public boolean removeAll(java.util.Collection<?> coll) { in removeAll() argument 591 public boolean retainAll(java.util.Collection<?> coll) { in retainAll() argument 607 java.util.Collection<E> checkedCopyOf(java.util.Collection<? extends E> coll) { in checkedCopyOf() argument 611 public boolean addAll(java.util.Collection<? extends E> coll) { in addAll() argument 917 public boolean addAll(java.util.Collection<? extends java.util.Map.Entry<K, V>> coll) { in addAll() argument [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 60 …core.util.NonNull java.util.Collection<? extends @libcore.util.NonNull T> coll) { throw new Runtim… in min() argument 62 …NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam T> coll, @libcore.util.Null… in min() argument 64 …core.util.NonNull java.util.Collection<? extends @libcore.util.NonNull T> coll) { throw new Runtim… in max() argument 66 …NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam T> coll, @libcore.util.Null… in max() argument
|
D | Set.annotated.java | 91 …til.Set<E> copyOf(@libcore.util.NonNull java.util.Collection<? extends E> coll) { throw new Runti… in copyOf() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SynchronousQueueTest.java | 115 Collection<Integer> coll = Arrays.asList(ints); in testAddAll_ISE() local 117 q.addAll(coll); in testAddAll_ISE()
|
/libcore/ojluni/src/main/java/jdk/internal/util/ |
D | ArraysSupport.java | 800 public static <T> T[] toArrayReversed(Collection<?> coll, T[] array) { in toArrayReversed() argument 801 T[] newArray = reverse(coll.toArray(Arrays.copyOfRange(array, 0, 0))); in toArrayReversed()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SynchronousQueueTest.java | 136 Collection<Integer> coll = Arrays.asList(ints); in testAddAll_ISE() local 138 q.addAll(coll); in testAddAll_ISE()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 4377 Collection<Annotation> coll = map.values(); in getAnnotations() local 4378 return coll.toArray(new Annotation[coll.size()]); in getAnnotations()
|