Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 168 for Nash (0.16 sec)

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

          }
        } else {
          assertEquals(expectedHashCode.asLong.longValue(), hash.asLong());
        }
        assertEquals(expectedHashCode.toString, hash.toString());
        assertSideEffectFree(hash);
        assertReadableBytes(hash);
      }
    
      private static void assertSideEffectFree(HashCode hash) {
        byte[] original = hash.asBytes();
        byte[] mutated = hash.asBytes();
        mutated[0]++;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K 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-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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

          assertTrue(item + " must be equivalent to itself", equivalence.equivalent(item, item));
          assertEquals(
              "the hash of " + item + " must be consistent",
              equivalence.hash(item),
              equivalence.hash(item));
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Platform.java

      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

     * constant time operations. Expected in the hashtable sense (depends on the hash function doing a
     * good job of distributing the elements to the buckets to a distribution not far from uniform), and
     * amortized since some operations can trigger a hash table resize.
     *
     * <p>This implementation consumes significantly less memory than {@code java.util.LinkedHashSet} or
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Files.java

      }
    
      /**
       * Computes the hash code of the {@code file} using {@code hashFunction}.
       *
       * @param file the file to read
       * @param hashFunction the hash function to use to hash the data
       * @return the {@link HashCode} of all of the bytes in the file
       * @throws IOException if an I/O error occurs
       * @since 12.0
       * @deprecated Prefer {@code asByteSource(file).hash(hashFunction)}.
       */
      @Deprecated
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top