Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for padToLong (0.04 sec)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertEquals(0x1111111111111111L, HashCode.fromLong(0x1111111111111111L).padToLong());
        assertEquals(0x9999999999999999L, HashCode.fromLong(0x9999999999999999L).padToLong());
        assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong());
        assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong());
      }
    
      public void testPadToLongWith4Bytes() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertEquals(0x1111111111111111L, HashCode.fromLong(0x1111111111111111L).padToLong());
        assertEquals(0x9999999999999999L, HashCode.fromLong(0x9999999999999999L).padToLong());
        assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong());
        assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong());
      }
    
      public void testPadToLongWith4Bytes() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/HashCode.java

       * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining
       * most-significant bytes.
       *
       * @since 14.0 (since 11.0 as {@code Hashing.padToLong(HashCode)})
       */
      public abstract long padToLong();
    
      /**
       * Returns the value of this hash code as a byte array. The caller may modify the byte array;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p>To get the {@code long} value equivalent to {@link Checksum#getValue()} for a {@code
       * HashCode} produced by this function, use {@link HashCode#padToLong()}.
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a
       * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/Hashing.java

       *
       * <p>To get the {@code long} value equivalent to {@link Checksum#getValue()} for a {@code
       * HashCode} produced by this function, use {@link HashCode#padToLong()}.
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a
       * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top