Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DenseImmutableTable (0.1 sec)

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

    /** A {@code RegularImmutableTable} optimized for dense data. */
    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class DenseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      private final ImmutableMap<R, Integer> rowKeyToIndex;
      private final ImmutableMap<C, Integer> columnKeyToIndex;
      private final ImmutableMap<R, ImmutableMap<C, V>> rowMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DenseImmutableTable.java

    /** A {@code RegularImmutableTable} optimized for dense data. */
    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class DenseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      private final ImmutableMap<R, Integer> rowKeyToIndex;
      private final ImmutableMap<C, Integer> columnKeyToIndex;
      private final ImmutableMap<R, ImmutableMap<C, V>> rowMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        builder.put('b', 2, "foo");
        builder.put('b', 1, "bar");
        builder.put('a', 2, "baz");
        Table<Character, Integer, String> table = builder.build();
        assertThat(table).isInstanceOf(DenseImmutableTable.class);
        validateReserialization(table);
      }
    
      public void testDenseSerialization_rowOrder() {
        ImmutableTable.Builder<Character, Integer, String> builder = ImmutableTable.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

      private static final SparseImmutableTable<Character, Integer, String> SPARSE =
          new SparseImmutableTable<>(CELLS.asList(), ROW_SPACE, COLUMN_SPACE);
    
      private static final DenseImmutableTable<Character, Integer, String> DENSE =
          new DenseImmutableTable<>(CELLS.asList(), ROW_SPACE, COLUMN_SPACE);
    
      @Override
      Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        // TODO(gak): tune this condition based on empirical evidence
        return (cellList.size() > (((long) rowSpace.size() * columnSpace.size()) / 2))
            ? new DenseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace)
            : new SparseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace);
      }
    
      /** @throws IllegalArgumentException if {@code existingValue} is not null. */
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top