Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 451 for key2 (0.98 sec)

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

          while (same != 0xffffffff || diff != 0xffffffff) {
            int key1 = rand.nextInt();
            // flip input bit for key2
            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
            // test whether the hash values have same output bits
            same |= ~(hash1 ^ hash2);
    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. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      public void testKeySetEntrySetValues() {
        for (LoadingCache<Key, String> cache : caches()) {
          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Joiner.java

       *
       * <ul>
       *   <li>To output a separate entry for each key-value pair, pass {@code multimap.entries()} to a
       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      public void testKeySetEntrySetValues() {
        for (LoadingCache<Key, String> cache : caches()) {
          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Striped.java

     * i.e. {@code if (key1.equals(key2))} then {@code striped.get(key1) == striped.get(key2)} (assuming
     * {@link Object#hashCode()} is correctly implemented for the keys). Note that if {@code key1} is
     * <strong>not</strong> equal to {@code key2}, it is <strong>not</strong> guaranteed that {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     * {@link #entries()}. Unlike {@link LinkedHashMultimap}, the iteration order is kept consistent
     * between keys, entries and values. For example, calling:
     *
     * <pre>{@code
     * multimap.remove(key1, foo);
     * }</pre>
     *
     * <p>changes the entries iteration order to {@code [key2=bar, key1=baz]} and the key iteration
     * order to {@code [key2, key1]}. The {@link #entries()} iterator returns mutable map entries, and
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

          while (same != 0xffffffff || diff != 0xffffffff) {
            int key1 = rand.nextInt();
            // flip input bit for key2
            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
            // test whether the hash values have same output bits
            same |= ~(hash1 ^ hash2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Joiner.java

       *
       * <ul>
       *   <li>To output a separate entry for each key-value pair, pass {@code multimap.entries()} to a
       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testBuildKeepingLast_smallTableSameHash() {
        String key1 = "QED";
        String key2 = "R&D";
        assertThat(key1.hashCode()).isEqualTo(key2.hashCode());
        ImmutableMap<String, Integer> map =
            ImmutableMap.<String, Integer>builder()
                .put(key1, 1)
                .put(key2, 2)
                .put(key1, 3)
                .put(key2, 4)
                .buildKeepingLast();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testBuildKeepingLast_smallTableSameHash() {
        String key1 = "QED";
        String key2 = "R&D";
        assertThat(key1.hashCode()).isEqualTo(key2.hashCode());
        ImmutableMap<String, Integer> map =
            ImmutableMap.<String, Integer>builder()
                .put(key1, 1)
                .put(key2, 2)
                .put(key1, 3)
                .put(key2, 4)
                .buildKeepingLast();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top