Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SparseImmutableTable (0.27 sec)

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

    /** A {@code RegularImmutableTable} optimized for sparse data. */
    @GwtCompatible
    @Immutable(containerOf = {"R", "C", "V"})
    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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 08 13:05:15 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top