Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 330 for Nash (0.15 sec)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.hash.HashTestUtils.RandomHasherAction;
    import java.io.ByteArrayOutputStream;
    import java.nio.ByteBuffer;
    import java.util.Arrays;
    import java.util.List;
    import java.util.Random;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  2. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.hash;
    
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.verifyNoMoreInteractions;
    import static org.mockito.Mockito.when;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/MultimapBuilder.java

       */
    
      private MultimapBuilder() {}
    
      private static final int DEFAULT_EXPECTED_KEYS = 8;
    
      /** Uses a hash table to map keys to value collections. */
      public static MultimapBuilderWithKeys<@Nullable Object> hashKeys() {
        return hashKeys(DEFAULT_EXPECTED_KEYS);
      }
    
      /**
       * Uses a hash table to map keys to value collections, initialized to expect the specified number
       * of keys.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

      // We can include the non-BMP fix here because Hashing.goodFastHash stresses that the hash is a
      // temporary-use one. Therefore it shouldn't be persisted.
      static final HashFunction GOOD_FAST_HASH_32 =
          new Murmur3_32HashFunction(Hashing.GOOD_FAST_HASH_SEED, /* supplementaryPlaneFix= */ true);
    
      private static final int CHUNK_SIZE = 4;
    
      private static final int C1 = 0xcc9e2d51;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

     * implementations. Forked from {@link SetContainsBenchmark}.
     *
     * @author Nicholaus Shupe
     */
    public class MapBenchmark {
      @Param({"Hash", "LinkedHM", "MapMaker1", "Immutable"})
      private Impl impl;
    
      public enum Impl {
        Hash {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            Map<Element, Element> map = Maps.newHashMap();
            for (Element element : keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
Back to top