- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for testConsistentHash_ofHashCode (0.1 seconds)
-
guava-tests/test/com/google/common/hash/HashingTest.java
private static final int MAX_SHARDS = 500; public void testConsistentHash_outOfRange() { assertThrows(IllegalArgumentException.class, () -> Hashing.consistentHash(5L, 0)); } public void testConsistentHash_ofHashCode() { checkSameResult(HashCode.fromLong(1), 1); checkSameResult(HashCode.fromLong(0x9999999999999999L), 0x9999999999999999L); checkSameResult(HashCode.fromInt(0x99999999), 0x0000000099999999L); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2)