Searched defs:k1 (Results 1 - 3 of 3) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | EntryTest.java | 26 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/luni/src/test/java/libcore/java/util/ |
H A D | CollectionsTest.java | 1409 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/ojluni/src/main/java/java/util/ |
H A D | TreeMap.java | 140 * <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...] |
Completed in 12 milliseconds