Home
last modified time | relevance | path

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

/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.java1323 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2) { in of() argument
1324 return new ImmutableCollections.MapN<>(k1, v1, k2, v2); in of()
1345 static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) { in of() argument
1346 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3); in of()
1369 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
1370 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4); in of()
1395 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
1396 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5); in of()
1423 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
1425 return new ImmutableCollections.MapN<>(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, in of()
[all …]
DWeakHashMap.java739 Object k2 = e.getKey(); in equals() local
740 if (k1 == k2 || (k1 != null && k1.equals(k2))) { in equals()
DTreeMap.java1294 final int compare(Object k1, Object k2) { in compare() argument
1295 return comparator==null ? ((Comparable<? super K>)k1).compareTo((K)k2) in compare()
1296 : comparator.compare((K)k1, (K)k2); in compare()
/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/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java391 subList.sort((k1, k2) -> k1.compareTo(k2)); in test_subList_sort()
/libcore/luni/src/test/java/libcore/java/util/
DCollectionsTest.java1384 Collections.emptyList().sort((k1, k2) -> 1); in test_EmptyList_sort()
1452 Collections.unmodifiableList(new ArrayList<>()).sort((k1, k2) -> 1); in test_unmodifiableList_sort()
1463 Collections.unmodifiableList(l).sort((k1, k2) -> 1); in test_unmodifiableList_sort()
1478 Collections.singletonList(1).sort((k1, k2) -> 2); in test_SingletonList_sort()
1625 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
1628 result.put(k2, v2); in createMap()