Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for Marche (0.17 sec)

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

            assertTrue(cache.asMap().remove(key, value));
            assertFalse(cache.asMap().remove(key, -1));
            assertFalse(cache.asMap().containsKey(key));
          }
          checkEmpty(cache);
        }
      }
    
    
      public void testKeySet_populated() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Object> keys = cache.asMap().keySet();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
        assertEquals(0, cache.stats().hitCount());
        assertEquals(0, cache.stats().missCount());
    
        Object one = new Object();
        cache.getUnchecked(one);
        assertEquals(0, cache.stats().hitCount());
        assertEquals(1, cache.stats().missCount());
    
        cache.getUnchecked(one);
        assertEquals(1, cache.stats().hitCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.CacheTesting.checkEmpty;
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    import static com.google.common.truth.Truth.assertThat;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

     */
    
    package com.google.common.cache;
    
    import static com.google.common.cache.TestingCacheLoaders.constantLoader;
    import static com.google.common.cache.TestingCacheLoaders.identityLoader;
    import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
    import static com.google.common.cache.TestingRemovalListeners.nullRemovalListener;
    import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/AbstractCache.java

      }
    
      /**
       * Accumulates statistics during the operation of a {@link Cache} for presentation by {@link
       * Cache#stats}. This is solely intended for consumption by {@code Cache} implementors.
       *
       * @since 10.0
       */
      public interface StatsCounter {
        /**
         * Records cache hits. This should be called when a cache request returns a cached value.
         *
         * @param count the number of hits to record
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/ForwardingCache.java

    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    import javax.annotation.CheckForNull;
    
    /**
     * A cache which forwards all its method calls to another cache. Subclasses should override one or
     * more methods to modify the behavior of the backing cache as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * @author Charles Fry
     * @since 10.0
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/ForwardingCache.java

    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ExecutionException;
    import javax.annotation.CheckForNull;
    
    /**
     * A cache which forwards all its method calls to another cache. Subclasses should override one or
     * more methods to modify the behavior of the backing cache as desired per the <a
     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
     * @author Charles Fry
     * @since 10.0
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/ForwardingCacheTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link ForwardingCache}.
     *
     * @author Charles Fry
     */
    public class ForwardingCacheTest extends TestCase {
      private Cache<String, Boolean> forward;
      private Cache<String, Boolean> mock;
    
      @SuppressWarnings({"unchecked", "DoNotMock"}) // mock
      @Override
      public void setUp() throws Exception {
        super.setUp();
        /*
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/MapIteratorCache.java

      @CheckForNull
      V getIfCached(@CheckForNull Object key) {
        Entry<K, V> entry = cacheEntry; // store local reference for thread-safety
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        if (entry != null && entry.getKey() == key) {
          return entry.getValue();
        }
        return null;
      }
    
      void clearCache() {
        cacheEntry = null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/ElementTypesAreNonnullByDefault.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.cache;
    
    import static java.lang.annotation.ElementType.FIELD;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.PARAMETER;
    import static java.lang.annotation.ElementType.TYPE;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 1.5K bytes
    - Viewed (0)
Back to top