Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newEntry (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      protected final void expectReplacement(Entry<K, V> newEntry) {
        List<Entry<K, V>> expected = copyToList(getSampleElements());
        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      protected final void expectReplacement(Entry<K, V> newEntry) {
        List<Entry<K, V>> expected = copyToList(getSampleElements());
        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      public void testPut_nullKeySupportedPresent() {
        Entry<K, V> newEntry = entry(null, v3());
        initMapWithNullKey();
        assertEquals(
            "put(present, value) should return the associated value",
            getValueForNullKey(),
            put(newEntry));
    
        Entry<K, V>[] expected = createArrayWithNullKey();
        expected[getNullLocation()] = newEntry;
        expectContents(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MapMakerInternalMap.java

            if (Segment.isCollected(entry)) {
              return null;
            }
            StrongKeyWeakValueEntry<K, V> newEntry = newEntry(segment, entry.key, entry.hash, newNext);
            newEntry.valueReference = entry.valueReference.copyFor(segment.queueForValues, newEntry);
            return newEntry;
          }
    
          @Override
          public void setValue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      public void testPut_nullKeySupportedPresent() {
        Entry<K, V> newEntry = entry(null, v3());
        initMapWithNullKey();
        assertEquals(
            "put(present, value) should return the associated value",
            getValueForNullKey(),
            put(newEntry));
    
        Entry<K, V>[] expected = createArrayWithNullKey();
        expected[getNullLocation()] = newEntry;
        expectContents(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

              ReferenceEntry<K, V> newNext,
              K key) {
            ReferenceEntry<K, V> newEntry = super.copyEntry(segment, original, newNext, key);
            copyAccessEntry(original, newEntry);
            copyWriteEntry(original, newEntry);
            return newEntry;
          }
        },
        WEAK {
          @Override
          <K, V> ReferenceEntry<K, V> newEntry(
              Segment<K, V> segment, K key, int hash, @CheckForNull ReferenceEntry<K, V> next) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

            if (Segment.isCollected(entry)) {
              return null;
            }
            StrongKeyWeakValueEntry<K, V> newEntry = newEntry(segment, entry.key, entry.hash, newNext);
            newEntry.valueReference = entry.valueReference.copyFor(segment.queueForValues, newEntry);
            return newEntry;
          }
    
          @Override
          public void setValue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/RegularImmutableBiMap.java

          }
          ImmutableMapEntry<K, V> newEntry =
              (nextInValueBucket == null && nextInKeyBucket == null)
                  ? RegularImmutableMap.makeImmutable(entry, key, value)
                  : new NonTerminalImmutableBiMapEntry<>(
                      key, value, nextInKeyBucket, nextInValueBucket);
          keyTable[keyBucket] = newEntry;
          valueTable[valueBucket] = newEntry;
          entries[i] = newEntry;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash);
        ReferenceEntry<Object, Object> newEntry = segment.copyEntry(entry, null);
        table.set(index, newEntry);
    
        @SuppressWarnings("unchecked")
        LoadingValueReference<Object, Object> valueReference =
            (LoadingValueReference) newEntry.getValueReference();
        assertFalse(valueReference.futureValue.isDone());
        startSignal.countDown();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        ReferenceEntry<Object, Object> entry = segment.getEntry(one, hash);
        ReferenceEntry<Object, Object> newEntry = segment.copyEntry(entry, null);
        table.set(index, newEntry);
    
        @SuppressWarnings("unchecked")
        LoadingValueReference<Object, Object> valueReference =
            (LoadingValueReference) newEntry.getValueReference();
        assertFalse(valueReference.futureValue.isDone());
        startSignal.countDown();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
Back to top