Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for table1 (0.65 sec)

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

        eraseAll();
      }
    
      private ArrayTable(Table<R, C, ? extends @Nullable V> table) {
        this(table.rowKeySet(), table.columnKeySet());
        putAll(table);
      }
    
      private ArrayTable(ArrayTable<R, C, V> table) {
        rowList = table.rowList;
        columnList = table.columnList;
        rowKeyToIndex = table.rowKeyToIndex;
        columnKeyToIndex = table.columnKeyToIndex;
        @SuppressWarnings("unchecked")
    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. guava/src/com/google/common/collect/AbstractTable.java

        return row(rowKey).put(columnKey, value);
      }
    
      @Override
      public void putAll(Table<? extends R, ? extends C, ? extends V> table) {
        for (Table.Cell<? extends R, ? extends C, ? extends V> cell : table.cellSet()) {
          put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
        }
      }
    
      @LazyInit private transient @Nullable Set<Cell<R, C, V>> cellSet;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        }
      }
    
      /**
       * Returns the bucket (in either the K-to-V or V-to-K tables) where elements with the specified
       * hash could be found, if present, or could be inserted.
       */
      private int bucket(int hash) {
        return hash & (hashTableKToV.length - 1);
      }
    
      /** Given a key, returns the index of the entry in the tables, or ABSENT if not found. */
      private int findEntryByKey(@Nullable Object key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 14:46:34 UTC 2025
    - 37.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Tables.immutableCell;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Table.Cell;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * @author Gregory Kick
     */
    @GwtCompatible
    @NullMarked
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSet.java

        }
      }
    
      // We use power-of-2 tables, and this is the highest int that's a power of 2
      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
      // If the set has this many elements, it will "max out" the table size
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertTrue(table.contains("bar", 1));
        assertTrue(table.contains("foo", 3));
        assertFalse(table.contains("foo", 2));
        assertFalse(table.contains("bar", 3));
        assertFalse(table.contains("cat", 1));
        assertFalse(table.contains("foo", null));
        assertFalse(table.contains(null, 1));
        assertFalse(table.contains(null, null));
      }
    
      public void testContainsRow() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        if (supportsRemove()) {
          assertThat(table.remove("cat", 1)).isNull();
          assertThat(table.remove("bar", 3)).isNull();
          assertEquals(3, table.size());
          assertEquals((Character) 'c', table.remove("foo", 3));
          assertEquals(2, table.size());
          assertEquals((Character) 'a', table.get("foo", 1));
          assertEquals((Character) 'b', table.get("bar", 1));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        if (supportsRemove()) {
          assertThat(table.remove("cat", 1)).isNull();
          assertThat(table.remove("bar", 3)).isNull();
          assertEquals(3, table.size());
          assertEquals((Character) 'c', table.remove("foo", 3));
          assertEquals(2, table.size());
          assertEquals((Character) 'a', table.get("foo", 1));
          assertEquals((Character) 'b', table.get("bar", 1));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table;
        int index = hash & (table.length() - 1);
    
        // already loading
        DummyEntry<Object, Object> entry = DummyEntry.create(key, hash, null);
        DummyValueReference<Object, Object> valueRef = DummyValueReference.create(null);
        valueRef.setLoading(true);
        entry.setValueReference(valueRef);
        table.set(index, entry);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        AtomicReferenceArray<ReferenceEntry<Object, Object>> table = segment.table;
        int index = hash & (table.length() - 1);
    
        // already loading
        DummyEntry<Object, Object> entry = DummyEntry.create(key, hash, null);
        DummyValueReference<Object, Object> valueRef = DummyValueReference.create(null);
        valueRef.setLoading(true);
        entry.setValueReference(valueRef);
        table.set(index, entry);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
Back to top