Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java26 static final String k1 = "1"; field in EntryTest
35 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1); in testConstructor1()
36 assertEquals(k1, e.getKey()); in testConstructor1()
44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2()
45 assertEquals(k1, s.getKey()); in testConstructor2()
53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3()
55 assertEquals(k1, e.getKey()); in testConstructor3()
63 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor4()
65 assertEquals(k1, s.getKey()); in testConstructor4()
74 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 …]
DWeakHashMap.java738 K k1 = 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()
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/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
1627 result.put(k1, v1); in createMap()
/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()