- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ClassWithTerribleHashCode (0.11 sec)
-
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
} private static class ClassWithTerribleHashCode implements Comparable<ClassWithTerribleHashCode> { private final int value; ClassWithTerribleHashCode(int value) { this.value = value; } @Override public int compareTo(ClassWithTerribleHashCode that) { return Integer.compare(this.value, that.value); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Map<ClassWithTerribleHashCode, Integer> expected = new LinkedHashMap<>(); Builder<ClassWithTerribleHashCode, Integer> builder = new Builder<>(); int size = 18; for (int i = 0; i < size; i++) { ClassWithTerribleHashCode key = new ClassWithTerribleHashCode(i); builder.put(key, i); builder.put(key, -i); expected.put(key, -i); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0)