Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 257 for Nash (0.23 sec)

  1. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

    import java.nio.charset.Charset;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An abstract composition of multiple hash functions. {@linkplain #newHasher()} delegates to the
     * {@code Hasher} objects of the delegate hash functions, and in the end, they are used by
     * {@linkplain #makeHash(Hasher[])} that constructs the final {@code HashCode}.
     *
     * @author Dimitris Andreou
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

        /**
         * Checks the whole hash table for poor hash distribution. Takes O(n) in the worst case, O(n /
         * log n) on average.
         *
         * <p>The online hash flooding detecting in RegularSetBuilderImpl.add can detect e.g. many
         * exactly matching hash codes, which would cause construction to take O(n^2), but can't detect
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.hash;
    
    import static com.google.common.hash.Hashing.ChecksumType.ADLER_32;
    import static com.google.common.hash.Hashing.ChecksumType.CRC_32;
    
    import java.util.zip.Checksum;
    import junit.framework.TestCase;
    
    /**
     * Tests for ChecksumHashFunction.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  4. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/PackageSanityTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import com.google.common.hash.BloomFilterStrategies.LockFreeBitArray;
    import com.google.common.testing.AbstractPackageSanityTests;
    
    /**
     * Basic sanity tests for the entire package.
     *
     * @author Ben Yu
     */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 1.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        return this;
      }
    
      @Override
      public final HashCode hash() {
        munch();
        Java8Compatibility.flip(buffer);
        if (buffer.remaining() > 0) {
          processRemaining(buffer);
          Java8Compatibility.position(buffer, buffer.limit());
        }
        return makeHash();
      }
    
      /**
       * Computes a hash code based on the data that have been provided to this hasher. This is called
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  7. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      public void testCreateFromHashMultimap() {
        Multimap<Double, Double> hash = HashMultimap.create();
        hash.put(1.0, 2.0);
        hash.put(2.0, 3.0);
        hash.put(3.0, 4.0);
        hash.put(4.0, 5.0);
    
        TreeMultimap<Double, Double> copyFromHash = TreeMultimap.create(hash);
        assertEquals(hash, copyFromHash);
        assertEquals(Ordering.natural(), copyFromHash.keyComparator());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.hash;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.nio.charset.StandardCharsets;
    import java.util.Random;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ByteSourceTester.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Charsets;
    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableList;
    import com.google.common.hash.HashCode;
    import com.google.common.hash.Hashing;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
Back to top