Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 180 for getAll (0.18 sec)

  1. android/guava/src/com/google/common/cache/CacheLoader.java

      }
    
      /**
       * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
       * LoadingCache#getAll}.
       *
       * <p>If the returned map doesn't contain all requested {@code keys} then the entries it does
       * contain will be cached, but {@code getAll} will throw an exception. If the returned map
       * contains extra keys not present in {@code keys} then all returned entries will be cached, but
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

        assertSame(Boolean.TRUE, forward.getUnchecked("key"));
      }
    
      public void testGetAll() throws ExecutionException {
        when(mock.getAll(ImmutableList.of("key"))).thenReturn(ImmutableMap.of("key", Boolean.TRUE));
        assertEquals(ImmutableMap.of("key", Boolean.TRUE), forward.getAll(ImmutableList.of("key")));
      }
    
      public void testApply() {
        when(mock.apply("key")).thenReturn(Boolean.TRUE);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/AbstractLoadingCache.java

     * implementation for the {@link #get(Object)} and {@link #getIfPresent} methods. {@link
     * #getUnchecked}, {@link #get(Object, Callable)}, and {@link #getAll} are implemented in terms of
     * {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link
     * #putAll} is implemented in terms of {@link #put}, {@link #invalidateAll(Iterable)} is implemented
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/AbstractLoadingCache.java

     * implementation for the {@link #get(Object)} and {@link #getIfPresent} methods. {@link
     * #getUnchecked}, {@link #get(Object, Callable)}, and {@link #getAll} are implemented in terms of
     * {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link
     * #putAll} is implemented in terms of {@link #put}, {@link #invalidateAll(Iterable)} is implemented
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/ForwardingLoadingCache.java

        return delegate().getUnchecked(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        return delegate().getAll(keys);
      }
    
      @Override
      public V apply(K key) {
        return delegate().apply(key);
      }
    
      @Override
      public void refresh(K key) {
        delegate().refresh(key);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/ForwardingLoadingCache.java

        return delegate().getUnchecked(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        return delegate().getAll(keys);
      }
    
      @Override
      public V apply(K key) {
        return delegate().apply(key);
      }
    
      @Override
      public void refresh(K key) {
        delegate().refresh(key);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.9K bytes
    - Viewed (1)
  7. cmd/bucket-replication-stats.go

    		rs.Completed = true
    	case replication.Pending:
    		rs.Pending = true
    	case replication.Failed:
    		rs.Failed = true
    		rs.Err = err
    	}
    }
    
    // GetAll returns replication metrics for all buckets at once.
    func (r *ReplicationStats) GetAll() map[string]BucketReplicationStats {
    	if r == nil {
    		return map[string]BucketReplicationStats{}
    	}
    
    	r.RLock()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

                return i++;
              }
            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 15.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LoadingCache.java

       *     values
       * @throws ExecutionError if an error was thrown while loading the values
       * @since 11.0
       */
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException;
    
      /**
       * @deprecated Provided to satisfy the {@code Function} interface; use {@link #get} or {@link
       *     #getUnchecked} instead.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

                return i++;
              }
            };
    
        LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader);
    
        cache.put(10, 20);
    
        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
Back to top