Searched refs:k1 (Results 1 - 6 of 6) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
H A DEntryTest.java26 static final String k1 = "1"; field in class:EntryTest
35 Map.Entry e = new AbstractMap.SimpleEntry(k1, v1);
36 assertEquals(k1, e.getKey());
44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1);
45 assertEquals(k1, s.getKey());
53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1);
55 assertEquals(k1, e.getKey());
63 Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1);
65 assertEquals(k1, s.getKey());
74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DWeakHashMap.java738 K k1 = getKey();
740 if (k1 == k2 || (k1 != null && k1.equals(k2))) {
H A DTreeMap.java140 * <em>mutually comparable</em>: {@code k1.compareTo(k2)} must not throw
141 * a {@code ClassCastException} for any keys {@code k1} and
155 * comparable</em> by the given comparator: {@code comparator.compare(k1,
157 * {@code k1} and {@code k2} in the map. If the user attempts to put
175 * <em>mutually comparable</em>: {@code k1.compareTo(k2)} must not throw
176 * a {@code ClassCastException} for any keys {@code k1} and
1294 final int compare(Object k1, Object k2) { argument
1295 return comparator==null ? ((Comparable<? super K>)k1).compareTo((K)k2)
1296 : comparator.compare((K)k1, (K)k2);
3043 Comparable<? super K> k1
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DCollectionsTest.java1409 Collections.emptyList().sort((k1, k2) -> 1);
1477 Collections.unmodifiableList(new ArrayList<>()).sort((k1, k2) -> 1);
1488 Collections.unmodifiableList(l).sort((k1, k2) -> 1);
1503 Collections.singletonList(1).sort((k1, k2) -> 2);
1650 private static<K,V> Map<K, V> createMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { argument
1652 result.put(k1, v1);
/libcore/luni/src/test/java/libcore/java/util/concurrent/
H A DCopyOnWriteArrayListTest.java391 subList.sort((k1, k2) -> k1.compareTo(k2));
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListMap.java3578 Comparable<? super K> k1 = (Comparable<? super K>) e1.getKey();
3579 return k1.compareTo(e2.getKey());

Completed in 209 milliseconds