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.java51 private static final IntKey EXTRA_INTKEY_VAL
52 = new IntKey(TEST_SIZE, Integer.MAX_VALUE);
56 public static final class IntKey implements Comparable<IntKey> { class in MapWithCollisionsProviders
61 IntKey(int value, int hashmask) { in IntKey() method in MapWithCollisionsProviders.IntKey
68 if (obj instanceof IntKey) { in equals()
69 IntKey other = (IntKey) obj; in equals()
83 public int compareTo(IntKey o) { in compareTo()
98 IntKey UNIQUE_OBJECTS[] = new IntKey[TEST_SIZE]; in createUniqueObjectKeys()
100 UNIQUE_OBJECTS[i] = new IntKey(i, Integer.MAX_VALUE); in createUniqueObjectKeys()
114 IntKey COLLIDING_OBJECTS[] = new IntKey[TEST_SIZE]; in createCollidingObjectKeys()
[all …]
DCollisions.java49 public void testIntegerIteration(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testIntegerIteration() argument
50 Map<IntKey, IntKey> map = ms.get(); in testIntegerIteration()
54 for (Map.Entry<IntKey, IntKey> each : map.entrySet()) { in testIntegerIteration()
62 for (IntKey each : map.keySet()) { in testIntegerIteration()
71 for (IntKey each : map.values()) { in testIntegerIteration()
DInPlaceOpsCollisions.java300 public void testComputeNonNull(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testComputeNonNull() argument
304 Map<IntKey, IntKey> map = ms.get(); in testComputeNonNull()
305 IntKey[] keys = map.keySet().stream().sorted().toArray(IntKey[]::new); in testComputeNonNull()
306 BiFunction<IntKey, IntKey, IntKey> mappingFunction = (k, v) -> { in testComputeNonNull()
315 IntKey retVal = map.compute(keys[i], mappingFunction); in testComputeNonNull()
385 public void testMergeNonNull(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testMergeNonNull() argument
389 Map<IntKey, IntKey> map = ms.get(); in testMergeNonNull()
390 IntKey[] keys = map.keySet().stream().sorted().toArray(IntKey[]::new); in testMergeNonNull()
393 BiFunction<IntKey, IntKey, IntKey> mappingFunction in testMergeNonNull()
397 IntKey retVal = map.merge(keys[i], val, mappingFunction); in testMergeNonNull()