Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 376 for key2 (0.12 sec)

  1. guava/src/com/google/common/collect/HashBiMap.java

        if (oldEntryForValue != null
            && keyHash == oldEntryForValue.keyHash
            && Objects.equal(key, oldEntryForValue.key)) {
          return key;
        } else if (oldEntryForKey != null && !force) {
          throw new IllegalArgumentException("key already present: " + key);
        }
    
        /*
         * The ordering here is important: if we deleted the key entry and then the value entry,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/EnumBiMap.java

      }
    
      /** Returns the associated key type. */
      @GwtIncompatible
      public Class<K> keyType() {
        return keyTypeOrObjectUnderJ2cl;
      }
    
      /** Returns the associated value type. */
      @GwtIncompatible
      public Class<V> valueType() {
        return valueTypeOrObjectUnderJ2cl;
      }
    
      @Override
      K checkKey(K key) {
        return checkNotNull(key);
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       *
       * @param multimap the presumed-immutable multimap
       * @param sampleKey a key of the same type as that contained by {@code multimap}. {@code multimap}
       *     may or may not have {@code sampleKey} as a key.
       * @param sampleValue a key of the same type as that contained by {@code multimap}. {@code
       *     multimap} may or may not have {@code sampleValue} as a key.
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        }
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutAll_nullKeySupported() {
        putAll(containsNullKey);
        expectAdded(containsNullKey.get(0));
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAll_nullKeyUnsupported() {
        try {
          putAll(containsNullKey);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                        map.putAll(ENTRIES_TO_FILTER);
                        return Maps.filterKeys(map, FILTER_KEYS);
                      }
                    })
                .named("Maps.filterKeys[Map, Predicate]")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        public Collection<UnhashableObject> create(UnhashableObject[] elements) {
          ImmutableMap.Builder<Integer, UnhashableObject> builder = ImmutableMap.builder();
          int key = 1;
          for (UnhashableObject value : elements) {
            builder.put(key++, value);
          }
          return builder.buildOrThrow().values();
        }
      }
    
      public static class ImmutableMapKeyListGenerator extends TestStringListGenerator {
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // count == 0
        segment.setTableEntryForTesting(index, entry);
        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        // count == 0
        segment.setTableEntryForTesting(index, entry);
        assertNull(segment.get(key, hash));
        assertFalse(segment.containsKey(key, hash));
        assertFalse(segment.containsValue(value));
    
        // count == 1
        segment.count++;
        assertSame(value, segment.get(key, hash));
        assertTrue(segment.containsKey(key, hash));
        assertTrue(segment.containsValue(value));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

          lastEntry = pred;
        } else {
          setPredecessor(succ, pred);
        }
      }
    
      @Override
      void insertEntry(
          int entryIndex, @ParametricNullness K key, @ParametricNullness V value, int hash, int mask) {
        super.insertEntry(entryIndex, key, value, hash, mask);
        setSucceeds(lastEntry, entryIndex);
        setSucceeds(entryIndex, ENDPOINT);
      }
    
      @Override
      void accessEntry(int index) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingMapEntry.java

     * to the provided {@code standardEquals} method.
     *
     * <p>Each of the {@code standard} methods, where appropriate, use {@link Objects#equal} to test
     * equality for both keys and values. This may not be the desired behavior for map implementations
     * that use non-standard notions of key equality, such as the entry of a {@code SortedMap} whose
     * comparator is not consistent with {@code equals}.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top