Home
last modified time | relevance | path

Searched refs:IntKey (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/util/Map/
DMapWithCollisionsProviders.java43 private static final IntKey EXTRA_INTKEY_VAL
44 = new IntKey(TEST_SIZE, Integer.MAX_VALUE);
48 public static final class IntKey implements Comparable<IntKey> { class in MapWithCollisionsProviders
53 IntKey(int value, int hashmask) { in IntKey() method in MapWithCollisionsProviders.IntKey
60 if (obj instanceof IntKey) { in equals()
61 IntKey other = (IntKey) obj; in equals()
75 public int compareTo(IntKey o) { in compareTo()
90 IntKey UNIQUE_OBJECTS[] = new IntKey[TEST_SIZE]; in createUniqueObjectKeys()
92 UNIQUE_OBJECTS[i] = new IntKey(i, Integer.MAX_VALUE); in createUniqueObjectKeys()
106 IntKey COLLIDING_OBJECTS[] = new IntKey[TEST_SIZE]; in createCollidingObjectKeys()
[all …]
DCollisions.java40 public void testIntegerIteration(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testIntegerIteration() argument
41 Map<IntKey, IntKey> map = ms.get(); in testIntegerIteration()
45 for (Map.Entry<IntKey, IntKey> each : map.entrySet()) { in testIntegerIteration()
53 for (IntKey each : map.keySet()) { in testIntegerIteration()
62 for (IntKey each : map.values()) { in testIntegerIteration()
DInPlaceOpsCollisions.java290 public void testComputeNonNull(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testComputeNonNull() argument
294 Map<IntKey, IntKey> map = ms.get(); in testComputeNonNull()
295 IntKey[] keys = map.keySet().stream().sorted().toArray(IntKey[]::new); in testComputeNonNull()
296 BiFunction<IntKey, IntKey, IntKey> mappingFunction = (k, v) -> { in testComputeNonNull()
305 IntKey retVal = map.compute(keys[i], mappingFunction); in testComputeNonNull()
375 public void testMergeNonNull(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testMergeNonNull() argument
379 Map<IntKey, IntKey> map = ms.get(); in testMergeNonNull()
380 IntKey[] keys = map.keySet().stream().sorted().toArray(IntKey[]::new); in testMergeNonNull()
383 BiFunction<IntKey, IntKey, IntKey> mappingFunction in testMergeNonNull()
387 IntKey retVal = map.merge(keys[i], val, mappingFunction); in testMergeNonNull()