Home
last modified time | relevance | path

Searched refs:k2 (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DEntryTest.java51 static final String k2 = "2"; field in EntryTest
116 Map.Entry e = new AbstractMap.SimpleEntry(k2, v1); in testNotEquals()
120 e = new AbstractMap.SimpleEntry(k2, v2); in testNotEquals()
124 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k2, v1); in testNotEquals()
128 s = new AbstractMap.SimpleImmutableEntry(k2, v2); in testNotEquals()
140 e.setValue(k2); in testSetValue1()
141 assertEquals(k2, e.getValue()); in testSetValue1()
154 s.setValue(k2); in testSetValue2()
/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java28 static final String k2 = "2"; field in EntryTest
93 Map.Entry e = new AbstractMap.SimpleEntry(k2, v1); in testNotEquals()
97 e = new AbstractMap.SimpleEntry(k2, v2); in testNotEquals()
101 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k2, v1); in testNotEquals()
105 s = new AbstractMap.SimpleImmutableEntry(k2, v2); in testNotEquals()
117 e.setValue(k2); in testSetValue1()
118 assertEquals(k2, e.getValue()); in testSetValue1()
131 s.setValue(k2); in testSetValue2()
/libcore/ojluni/src/main/java/java/util/
DMap.java1372 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2) { in of() argument
1373 return new ImmutableCollections.MapN<>(k1, v1, k2, v2); in of()
1394 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) { in of() argument
1395 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3); in of()
1418 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { in of() argument
1419 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4); in of()
1444 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) { in of() argument
1445 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); in of()
1472 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, in of() argument
1474 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, in of()
[all …]
DWeakHashMap.java742 Object k2 = e.getKey(); in equals() local
743 if (k1 == k2 || (k1 != null && k1.equals(k2))) { in equals()
DTreeMap.java1604 final int compare(Object k1, Object k2) { in compare() argument
1605 return comparator==null ? ((Comparable<? super K>)k1).compareTo((K)k2) in compare()
1606 : comparator.compare((K)k1, (K)k2); in compare()
/libcore/ojluni/annotations/flagged_api/java/util/
DMap.annotated.java86 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2) { throw new RuntimeException("St… in of() argument
88 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3) { throw new RuntimeE… in of() argument
90 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { throw … in of() argument
92 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
94 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
96 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
98 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
100 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
102 public static <K, V> java.util.Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V … in of() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DMap.annotated.java88 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
90 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
92 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
94 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
96 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
98 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
100 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
102 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
104 …ore.util.NonNull K k1, @libcore.util.NonNull V v1, @libcore.util.NonNull K k2, @libcore.util.NonNu… in of() argument
/libcore/ojluni/src/test/java/util/Map/
DEntryComparators.java45 private <K, V> void assertPairComparison(K k1, V v1, K k2, V v2, in assertPairComparison() argument
50 final Map.Entry<K, V> p21 = new AbstractMap.SimpleImmutableEntry<>(k2, v1); in assertPairComparison()
51 final Map.Entry<K, V> p22 = new AbstractMap.SimpleImmutableEntry<>(k2, v2); in assertPairComparison()
/libcore/ojluni/src/test/java/lang/StackWalker/
DStackStreamTest.java253 k2(); in k1()
255 void k2() { in k2() method in StackStreamTest.K
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java1386 Collections.emptyList().sort((k1, k2) -> 1); in test_EmptyList_sort()
1454 Collections.unmodifiableList(new ArrayList<>()).sort((k1, k2) -> 1); in test_unmodifiableList_sort()
1465 Collections.unmodifiableList(l).sort((k1, k2) -> 1); in test_unmodifiableList_sort()
1480 Collections.singletonList(1).sort((k1, k2) -> 2); in test_SingletonList_sort()
1627 private static<K,V> Map<K, V> createMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { in createMap() argument
1630 result.put(k2, v2); in createMap()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java400 subList.sort((k1, k2) -> k1.compareTo(k2)); in test_subList_sort()
/libcore/ojluni/src/test/java/util/Arrays/
DSorting.java1901 int k2 = a.length / 3 * 2;
1908 for (int i = k1; i < k2; i++) {
1912 for (int i = k2, k = level; i < a.length; i++) {