Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getCell (0.04 sec)

  1. guava/src/com/google/common/collect/ArrayTable.java

          protected Cell<R, C, @Nullable V> get(int index) {
            return getCell(index);
          }
        };
      }
    
      @Override
      Spliterator<Cell<R, C, @Nullable V>> cellSpliterator() {
        return CollectSpliterators.indexed(
            size(), Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.DISTINCT, this::getCell);
      }
    
      private Cell<R, C, @Nullable V> getCell(int index) {
        return new Tables.AbstractCell<R, C, @Nullable V>() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableTable.java

     *
     * @author Gregory Kick
     */
    @GwtCompatible
    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.of() : new CellSet();
      }
    
      @WeakOuter
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/SparseImmutableTable.java

        // Casts without copying.
        return ImmutableMap.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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SparseImmutableTable.java

        // Casts without copying.
        return ImmutableMap.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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 5.3K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/collect/DenseImmutableTable.java

      }
    
      @Override
      public int size() {
        return cellRowIndices.length;
      }
    
      @Override
      Cell<R, C, V> getCell(int index) {
        int rowIndex = cellRowIndices[index];
        int columnIndex = cellColumnIndices[index];
        R rowKey = rowKeySet().asList().get(rowIndex);
        C columnKey = columnKeySet().asList().get(columnIndex);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. 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(int index) {
            return getCell(index);
          }
        };
      }
    
      private Cell<R, C, @Nullable V> getCell(int index) {
        return new Tables.AbstractCell<R, C, @Nullable V>() {
          final int rowIndex = index / columnList.size();
          final int columnIndex = index % columnList.size();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 19:39:21 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(stats.hitCount()).isEqualTo(0);
    
        assertThat(cache.getAll(ImmutableList.of())).isEmpty();
        assertThat(stats.missCount()).isEqualTo(0);
        assertThat(stats.loadSuccessCount()).isEqualTo(0);
        assertThat(stats.loadExceptionCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
    
        assertThat(cache.getAll(asList(1))).containsExactly(1, 1);
        stats = cache.stats();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThat(stats.hitCount()).isEqualTo(0);
    
        assertThat(cache.getAll(ImmutableList.of())).isEmpty();
        assertThat(stats.missCount()).isEqualTo(0);
        assertThat(stats.loadSuccessCount()).isEqualTo(0);
        assertThat(stats.loadExceptionCount()).isEqualTo(0);
        assertThat(stats.hitCount()).isEqualTo(0);
    
        assertThat(cache.getAll(asList(1))).containsExactly(1, 1);
        stats = cache.stats();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. 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));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top