/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/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/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 | 722 static <E> Set<E> copyOf(Collection<? extends E> coll) { in copyOf() argument 723 if (coll instanceof ImmutableCollections.AbstractImmutableSet) { in copyOf() 724 return (Set<E>)coll; in copyOf() 726 return (Set<E>)Set.of(new HashSet<>(coll).toArray()); in copyOf()
|
D | Collections.java | 641 public static <T extends Object & Comparable<? super T>> T min(Collection<? extends T> coll) { in min() argument 642 Iterator<? extends T> i = coll.iterator(); in min() 677 public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) { in min() argument 679 return (T)min((Collection) coll); in min() 681 Iterator<? extends T> i = coll.iterator(); in min() 714 public static <T extends Object & Comparable<? super T>> T max(Collection<? extends T> coll) { in max() argument 715 Iterator<? extends T> i = coll.iterator(); in max() 750 public static <T> T max(Collection<? extends T> coll, Comparator<? super T> comp) { in max() argument 752 return (T)max((Collection) coll); in max() 754 Iterator<? extends T> i = coll.iterator(); in max() [all …]
|
D | List.java | 1079 static <E> List<E> copyOf(Collection<? extends E> coll) { in copyOf() argument 1080 return ImmutableCollections.listCopy(coll); in copyOf()
|
D | ImmutableCollections.java | 87 static <E> List<E> listCopy(Collection<? extends E> coll) { in listCopy() argument 88 if (coll instanceof AbstractImmutableList && coll.getClass() != SubList.class) { in listCopy() 89 return (List<E>)coll; in listCopy() 91 return (List<E>)List.of(coll.toArray()); 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/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DistinctOpTest.java | 120 SortedTestData(List<T> coll) { in SortedTestData() argument 121 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 | 58 …core.util.NonNull java.util.Collection<? extends @libcore.util.NonNull T> coll) { throw new Runtim… in min() argument 60 …NonNull java.util.Collection<? extends @libcore.util.NullFromTypeParam T> coll, @libcore.util.Null… in min() argument 62 …core.util.NonNull java.util.Collection<? extends @libcore.util.NonNull T> coll) { throw new Runtim… in max() argument 64 …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
|
D | List.annotated.java | 115 …NonNull E> copyOf(@libcore.util.NonNull java.util.Collection<? extends E> coll) { throw new Runtim… in copyOf() argument
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 2629 Collection<Annotation> coll = map.values(); in getAnnotations() local 2630 return coll.toArray(new Annotation[coll.size()]); in getAnnotations()
|
/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/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArrayListTest.java | 452 Collection coll = Arrays.asList(new String[] { "1", "2" }); in testaddAllHarmony5839() local 464 list.addAll(6, coll); in testaddAllHarmony5839()
|