Home
last modified time | relevance | path

Searched refs:k2 (Results 1 – 4 of 4) 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/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 …]
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