Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newValue (1.66 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
    
        // same value
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
    
        // same value
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertTrue(segment.replace(key, hash, oldValue, newValue));
        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. 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() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top