Home
last modified time | relevance | path

Searched refs:k1 (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DEntryTest.java49 static final String k1 = "1"; field in EntryTest
58 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1()
59 assertEquals(k1, e.getKey()); in testConstructor1()
67 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2()
68 assertEquals(k1, s.getKey()); in testConstructor2()
76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3()
78 assertEquals(k1, e.getKey()); in testConstructor3()
86 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4()
88 assertEquals(k1, s.getKey()); in testConstructor4()
97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals()
[all …]
/libcore/ojluni/src/main/java/java/util/
DMap.java1303 static <K, V> Map<K, V> of(K k1, V v1) { in of() argument
1304 return new ImmutableCollections.Map1<>(k1, v1); in of()
1323 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()
[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()
3043 Comparable<? super K> k1 = (Comparable<? super K>) e1.getKey(); in getComparator()
3044 return k1.compareTo(e2.getKey()); in getComparator()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DMap.annotated.java86 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
88 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
90 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
92 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
94 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
96 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
98 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
100 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
102 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
104 …ibcore.util.NonNull K, @libcore.util.NonNull V> of(@libcore.util.NonNull K k1, @libcore.util.NonNu… in of() argument
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java3578 Comparable<? super K> k1 = (Comparable<? super K>) e1.getKey(); in getComparator()
3579 return k1.compareTo(e2.getKey()); in getComparator()