Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getCall (0.2 sec)

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

        // re-order
        getAll(cache, asList(0, 1, 2));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2);
    
        // evict 3, 4, 5
        getAll(cache, asList(10));
        CacheTesting.drainRecencyQueues(cache);
        assertThat(keySet).containsExactly(6, 7, 8, 9, 0, 1, 2, 10);
    
        // re-order
        getAll(cache, asList(6, 7, 8));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  2. 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 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableTable.java

     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class RegularImmutableTable<R, C, V> extends ImmutableTable<R, C, V> {
      RegularImmutableTable() {}
    
      abstract Cell<R, C, V> getCell(int iterationIndex);
    
      @Override
      final ImmutableSet<Cell<R, C, V>> createCellSet() {
        return isEmpty() ? ImmutableSet.<Cell<R, C, V>>of() : new CellSet();
      }
    
      @WeakOuter
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/UnannotatedJavaClass.java

     */
    
    package com.google.common.base;
    
    /** Class containing an unannotated Java method for use from {@code OptionalExtensionsTest}. */
    final class UnannotatedJavaClass {
      static Object getNull() {
        return null;
      }
    
      private UnannotatedJavaClass() {}
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Aug 02 17:05:25 GMT 2023
    - 854 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SparseImmutableTable.java

        return ImmutableMap.<R, Map<C, V>>copyOf(rowMap);
      }
    
      @Override
      public int size() {
        return cellRowIndices.length;
      }
    
      @Override
      Cell<R, C, V> getCell(int index) {
        int rowIndex = cellRowIndices[index];
        Entry<R, ImmutableMap<C, V>> rowEntry = rowMap.entrySet().asList().get(rowIndex);
        ImmutableMap<C, V> row = rowEntry.getValue();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. android/guava/src/com/google/common/collect/ArrayTable.java

        return new AbstractIndexedListIterator<Cell<R, C, @Nullable V>>(size()) {
          @Override
          protected Cell<R, C, @Nullable V> get(final int index) {
            return getCell(index);
          }
        };
      }
    
      private Cell<R, C, @Nullable V> getCell(final int index) {
        return new Tables.AbstractCell<R, C, @Nullable V>() {
          final int rowIndex = index / columnList.size();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  8. 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)
  9. guava/src/com/google/common/collect/ArrayTable.java

            return getCell(index);
          }
        };
      }
    
      @Override
      Spliterator<Cell<R, C, @Nullable V>> cellSpliterator() {
        return CollectSpliterators.<Cell<R, C, @Nullable V>>indexed(
            size(), Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.DISTINCT, this::getCell);
      }
    
      private Cell<R, C, @Nullable V> getCell(final int index) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K 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