Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for Nash (0.2 sec)

  1. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          }
        },
        HASH_FUNCTION_VIA_HASHER() {
          @Override
          public byte[] hash(Algorithm algorithm, byte[] input) {
            return algorithm.getHashFunction().newHasher().putBytes(input).hash().asBytes();
          }
        };
        ;
    
        public abstract byte[] hash(Algorithm algorithm, byte[] input);
      }
    
      private enum Algorithm {
        MD5("MD5", Hashing.md5()),
        SHA_1("SHA-1", Hashing.sha1()),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

      static class Element implements Comparable<Element> {
        final int hash;
    
        Element(int hash) {
          this.hash = hash;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return this == obj || (obj instanceof Element && ((Element) obj).hash == hash);
        }
    
        @Override
        public int hashCode() {
          return hash;
        }
    
        @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

      /** Bitmask that selects the low bits of metadata to get hashTableBits. */
      static final int HASH_TABLE_BITS_MASK = (1 << HASH_TABLE_BITS_MAX_BITS) - 1;
    
      /** Maximum size of a compact hash-based collection (2^30 - 1 because 0 is UNSET). */
      static final int MAX_SIZE = Ints.MAX_POWER_OF_TWO - 1;
    
      /** Default size of a compact hash-based collection. */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  4. android/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 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashing.java

      /** Bitmask that selects the low bits of metadata to get hashTableBits. */
      static final int HASH_TABLE_BITS_MASK = (1 << HASH_TABLE_BITS_MAX_BITS) - 1;
    
      /** Maximum size of a compact hash-based collection (2^30 - 1 because 0 is UNSET). */
      static final int MAX_SIZE = Ints.MAX_POWER_OF_TWO - 1;
    
      /** Default size of a compact hash-based collection. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

              new Sink(4).putUnencodedChars(s).hash(),
              new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        Sink sink = new Sink(4);
        sink.putFloat(Float.intBitsToFloat(0x04030201));
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putBytes(s.getBytes(UTF_16LE)).hash());
          assertEquals(
              new TestHasher().putUnencodedChars(s).hash(),
              new TestHasher().putString(s, UTF_16LE).hash());
        }
      }
    
      public void testFloat() {
        TestHasher hasher = new TestHasher();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Objects.java

        return a == b || (a != null && a.equals(b));
      }
    
      /**
       * Generates a hash code for multiple values. The hash code is generated by calling {@link
       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

            itemInfo,
            relatedInfo,
            equivalence.equivalent(item, related));
    
        int itemHash = equivalence.hash(item);
        int relatedHash = equivalence.hash(related);
        assertWithTemplate(
            "the $HASH ("
                + itemHash
                + ") of $ITEM must be equal to the $HASH ("
                + relatedHash
                + ") of $OTHER",
            itemInfo,
            relatedInfo,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(expected, SIP_WITH_KEY.newHasher().putString(input, UTF_8).hash().asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.hashString(input, UTF_8).asLong());
        assertEquals(expected, SIP_WITHOUT_KEY.newHasher().putString(input, UTF_8).hash().asLong());
      }
    
      private static void assertSip(byte[] input, long expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
Back to top