Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for Nash (0.18 sec)

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

          key[i] = (byte) i;
          int seed = 256 - i;
          byte[] hash = hashFunction.hash(Arrays.copyOf(key, i), seed);
          System.arraycopy(hash, 0, hashes, i * hashBytes, hash.length);
        }
    
        // Then hash the result array
        byte[] result = hashFunction.hash(hashes, 0);
    
        // interpreted in little-endian order.
        int verification = Integer.reverseBytes(Ints.fromByteArray(result));
    
        if (expected != verification) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Hashing.murmur3_32;
    import static com.google.common.hash.Hashing.murmur3_32_fixed;
    
    import com.google.common.base.Charsets;
    import com.google.common.hash.HashTestUtils.HashFn;
    import java.nio.charset.Charset;
    import java.util.Random;
    import junit.framework.TestCase;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashSet.java

       * input.
       */
      @VisibleForTesting(
          )
      static final double HASH_FLOODING_FPP = 0.001;
    
      /**
       * Maximum allowed length of a hash table bucket before falling back to a j.u.LinkedHashSet based
       * implementation. Experimentally determined.
       */
      private static final int MAX_HASH_BUCKET_LENGTH = 9;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

       * input.
       */
      @VisibleForTesting(
          )
      static final double HASH_FLOODING_FPP = 0.001;
    
      /**
       * Maximum allowed length of a hash table bucket before falling back to a j.u.LinkedHashMap-based
       * implementation. Experimentally determined.
       */
      private static final int MAX_HASH_BUCKET_LENGTH = 9;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Equivalence.java

       *       y}, if {@code equivalent(x, y)}, then {@code hash(x) == hash(y)}. It is <i>not</i>
       *       necessary that the hash be distributable across <i>inequivalence</i>. If {@code
       *       equivalence(x, y)} is false, {@code hash(x) == hash(y)} may still be true.
       *   <li>{@code hash(null)} is {@code 0}.
       * </ul>
       */
      public final int hash(@CheckForNull T t) {
        if (t == null) {
          return 0;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Equivalence.java

       *       y}, if {@code equivalent(x, y)}, then {@code hash(x) == hash(y)}. It is <i>not</i>
       *       necessary that the hash be distributable across <i>inequivalence</i>. If {@code
       *       equivalence(x, y)} is false, {@code hash(x) == hash(y)} may still be true.
       *   <li>{@code hash(null)} is {@code 0}.
       * </ul>
       */
      public final int hash(@CheckForNull T t) {
        if (t == null) {
          return 0;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          String expectedMessage =
              "the hash (1) of TestObject{group=1, item=1} [group 1, item 1] must be "
                  + "equal to the hash (2) of TestObject{group=1, item=2} [group 1, item 2]";
          if (!expected.getMessage().contains(expectedMessage)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapDifference.java

       * #entriesDiffering()} of the two instances are equal.
       */
      @Override
      boolean equals(@CheckForNull Object object);
    
      /**
       * Returns the hash code for this instance. This is defined as the hash code of
       *
       * <pre>{@code
       * Arrays.asList(entriesOnlyOnLeft(), entriesOnlyOnRight(),
       *     entriesInCommon(), entriesDiffering())
       * }</pre>
       */
      @Override
      int hashCode();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Aug 04 13:28:27 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingTest.java

          HashFunction func = cell.getRowKey();
          String input = cell.getColumnKey();
          String expected = cell.getValue();
          assertEquals(
              String.format(Locale.ROOT, "Known hash for hash(%s, UTF_8) failed", input),
              expected,
              func.hashString(input, UTF_8).toString());
        }
      }
    
      public void testNullPointers() {
        NullPointerTester tester =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
Back to top