Home
last modified time | relevance | path

Searched refs:k1 (Results 1 – 13 of 13) 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/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.java1352 static <K, V> Map<K, V> of(K k1, V v1) { in of() argument
1353 return new ImmutableCollections.Map1<>(k1, v1); in of()
1372 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()
[all …]
DWeakHashMap.java741 K k1 = getKey(); in equals()
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()
3396 Comparable<? super K> k1 = (Comparable<? super K>) e1.getKey(); in getComparator()
3397 return k1.compareTo(e2.getKey()); in getComparator()
/libcore/ojluni/annotations/flagged_api/java/util/
DMap.annotated.java84 public static <K, V> java.util.Map<K,V> of(K k1, V v1) { throw new RuntimeException("Stub!"); } in of() argument
86 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.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/test/java/util/Map/
DEntryComparators.java45 private <K, V> void assertPairComparison(K k1, V v1, K k2, V v2, in assertPairComparison() argument
48 final Map.Entry<K, V> p11 = new AbstractMap.SimpleImmutableEntry<>(k1, v1); in assertPairComparison()
49 final Map.Entry<K, V> p12 = new AbstractMap.SimpleImmutableEntry<>(k1, v2); in assertPairComparison()
/libcore/ojluni/src/test/java/lang/StackWalker/
DStackStreamTest.java250 k1(); in k()
252 void k1() { in k1() 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
1629 result.put(k1, v1); 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.java1900 int k1 = a.length / 3;
1904 for (int i = 0, k = level; i < k1; i++) {
1908 for (int i = k1; i < k2; i++) {
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java3401 Comparable<? super K> k1 = (Comparable<? super K>) e1.getKey(); in getComparator()
3402 return k1.compareTo(e2.getKey()); in getComparator()