Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConsistentHash_ofHashCode (0.8 sec)

  1. 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);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top