Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getRowKey (0.14 sec)

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

              (Cell<R, C, V> cell1, Cell<R, C, V> cell2) -> {
                int rowCompare =
                    (rowComparator == null)
                        ? 0
                        : rowComparator.compare(cell1.getRowKey(), cell2.getRowKey());
                if (rowCompare != 0) {
                  return rowCompare;
                }
                return (columnComparator == null)
                    ? 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Tables.java

            Cell<?, ?, ?> other = (Cell<?, ?, ?>) obj;
            return Objects.equal(getRowKey(), other.getRowKey())
                && Objects.equal(getColumnKey(), other.getColumnKey())
                && Objects.equal(getValue(), other.getValue());
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(getRowKey(), getColumnKey(), getValue());
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                          @SuppressWarnings("unchecked")
                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
                        }
                        return table.cellSet();
                      }
    
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                          @SuppressWarnings("unchecked")
                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
                        }
                        return table.cellSet();
                      }
    
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

      public void testToImmutableTableSanityTest() {
        Collector<Cell<String, String, Integer>, ?, ImmutableTable<String, String, Integer>> collector =
            toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
        CollectorTester.of(collector)
            .expectCollects(ImmutableTable.of())
            .expectCollects(ImmutableTable.of("one", "uno", 1), immutableCell("one", "uno", 1));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SingletonImmutableTable.java

        this.singleRowKey = checkNotNull(rowKey);
        this.singleColumnKey = checkNotNull(columnKey);
        this.singleValue = checkNotNull(value);
      }
    
      SingletonImmutableTable(Cell<R, C, V> cell) {
        this(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
      }
    
      @Override
      public ImmutableMap<R, V> column(C columnKey) {
        checkNotNull(columnKey);
        return containsColumn(columnKey)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Table.java

       * @since 7.0
       */
      interface Cell<
          R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> {
        /** Returns the row key of this cell. */
        @ParametricNullness
        R getRowKey();
    
        /** Returns the column key of this cell. */
        @ParametricNullness
        C getColumnKey();
    
        /** Returns the value of this cell. */
        @ParametricNullness
        V getValue();
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/SparseImmutableTable.java

        int[] cellRowIndices = new int[cellList.size()];
        int[] cellColumnInRowIndices = new int[cellList.size()];
        for (int i = 0; i < cellList.size(); i++) {
          Cell<R, C, V> cell = cellList.get(i);
          R rowKey = cell.getRowKey();
          C columnKey = cell.getColumnKey();
          V value = cell.getValue();
    
          /*
           * These requireNonNull calls are safe because we construct the maps to hold all the provided
           * cells.
           */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Table.java

       * @since 7.0
       */
      interface Cell<
          R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object> {
        /** Returns the row key of this cell. */
        @ParametricNullness
        R getRowKey();
    
        /** Returns the column key of this cell. */
        @ParametricNullness
        C getColumnKey();
    
        /** Returns the value of this cell. */
        @ParametricNullness
        V getValue();
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableTable.java

            checkNotNull(cell.getRowKey(), "row");
            checkNotNull(cell.getColumnKey(), "column");
            checkNotNull(cell.getValue(), "value");
            @SuppressWarnings("unchecked") // all supported methods are covariant
            Cell<R, C, V> immutableCell = (Cell<R, C, V>) cell;
            cells.add(immutableCell);
          } else {
            put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
          }
    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