Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SparseImmutableTable (0.21 sec)

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

    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class SparseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      static final ImmutableTable<Object, Object, Object> EMPTY =
          new SparseImmutableTable<>(
              ImmutableList.<Cell<Object, Object, Object>>of(), ImmutableSet.of(), ImmutableSet.of());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SparseImmutableTable.java

    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    @ElementTypesAreNonnullByDefault
    final class SparseImmutableTable<R, C, V> extends RegularImmutableTable<R, C, V> {
      static final ImmutableTable<Object, Object, Object> EMPTY =
          new SparseImmutableTable<>(
              ImmutableList.<Cell<Object, Object, Object>>of(), ImmutableSet.of(), ImmutableSet.of());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        builder.put('a', 2, "baz");
        builder.put('c', 3, "cat");
        builder.put('d', 4, "dog");
        Table<Character, Integer, String> table = builder.build();
        assertThat(table).isInstanceOf(SparseImmutableTable.class);
        validateReserialization(table);
      }
    
      public void testSparseSerialization_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 ImmutableSet<Integer> COLUMN_SPACE = ImmutableSet.of(1, 2);
    
      private static final SparseImmutableTable<Character, Integer, String> SPARSE =
          new SparseImmutableTable<>(CELLS.asList(), ROW_SPACE, COLUMN_SPACE);
    
      private static final DenseImmutableTable<Character, Integer, String> DENSE =
    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

        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)
  6. android/guava/src/com/google/common/collect/ImmutableTable.java

       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <R, C, V> ImmutableTable<R, C, V> of() {
        return (ImmutableTable<R, C, V>) SparseImmutableTable.EMPTY;
      }
    
      /** Returns an immutable table containing a single cell. */
      public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, C columnKey, V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top