Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for combineOrdered (0.27 sec)

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

        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32)));
        assertEquals(
            HashCode.fromBytes(new byte[] {(byte) 0x80, 0, 0, 0}),
            Hashing.combineOrdered(ImmutableList.of(hash32, hash32)));
        assertEquals(
            HashCode.fromBytes(new byte[] {(byte) 0xa0, 0, 0, 0}),
            Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32)));
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32)));
        assertEquals(
            HashCode.fromBytes(new byte[] {(byte) 0x80, 0, 0, 0}),
            Hashing.combineOrdered(ImmutableList.of(hash32, hash32)));
        assertEquals(
            HashCode.fromBytes(new byte[] {(byte) 0xa0, 0, 0, 0}),
            Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32)));
        assertFalse(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       *
       * @throws IllegalArgumentException if {@code hashCodes} is empty, or the hash codes do not all
       *     have the same bit length
       */
      public static HashCode combineOrdered(Iterable<HashCode> hashCodes) {
        Iterator<HashCode> iterator = hashCodes.iterator();
        checkArgument(iterator.hasNext(), "Must be at least 1 hash code to combine.");
        int bits = iterator.next().bits();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
Back to top