Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for newValue1 (0.08 seconds)

  1. guava/src/com/google/common/cache/LocalCache.java

            V previousValue = oldValue.get();
            if (previousValue == null) {
              V newValue = loader.load(key);
              return set(newValue) ? futureValue : immediateFuture(newValue);
            }
            ListenableFuture<V> newValue = loader.reload(key, previousValue);
            if (newValue == null) {
              return immediateFuture(null);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/cache/LocalCache.java

            V previousValue = oldValue.get();
            if (previousValue == null) {
              V newValue = loader.load(key);
              return set(newValue) ? futureValue : immediateFuture(newValue);
            }
            ListenableFuture<V> newValue = loader.reload(key, previousValue);
            if (newValue == null) {
              return immediateFuture(null);
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // different value
        assertThat(segment.replace(key, hash, oldValue, newValue)).isFalse();
        assertThat(segment.count).isEqualTo(1);
        assertThat(segment.get(key, hash)).isSameInstanceAs(newValue);
    
        // cleared
        entry.setValueReference(oldValueRef);
        assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue);
        oldValueRef.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // different value
        assertThat(segment.replace(key, hash, oldValue, newValue)).isFalse();
        assertThat(segment.count).isEqualTo(1);
        assertThat(segment.get(key, hash)).isSameInstanceAs(newValue);
    
        // cleared
        entry.setValueReference(oldValueRef);
        assertThat(segment.get(key, hash)).isSameInstanceAs(oldValue);
        oldValueRef.clear();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  5. compat/maven-model/src/main/java/org/apache/maven/model/merge/ModelMerger.java

                        V newValue = (oldValue == null) ? e.getValue() : remapping.merge(oldValue, e.getValue());
                        if (newValue == null) {
                            remove(key);
                        } else if (newValue != oldValue) {
                            map.put(key, newValue);
                        }
                    }
                } else {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 11:21:39 GMT 2025
    - 99.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Maps.java

                  }
    
                  @Override
                  @ParametricNullness
                  public V setValue(@ParametricNullness V newValue) {
                    checkArgument(apply(getKey(), newValue));
                    return super.setValue(newValue);
                  }
                };
              }
            };
          }
        }
    
        @Override
        Set<K> createKeySet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Maps.java

                  }
    
                  @Override
                  @ParametricNullness
                  public V setValue(@ParametricNullness V newValue) {
                    checkArgument(apply(getKey(), newValue));
                    return super.setValue(newValue);
                  }
                };
              }
            };
          }
        }
    
        @Override
        Set<K> createKeySet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
Back to Top