Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for toTable (0.03 sec)

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

        final Table<R, C, MutableCell<R, C, V>> table = HashBasedTable.create();
    
        void put(R row, C column, V value, BinaryOperator<V> merger) {
          MutableCell<R, C, V> oldCell = table.get(row, column);
          if (oldCell == null) {
            MutableCell<R, C, V> cell = new MutableCell<>(row, column, value);
            insertionOrder.add(cell);
            table.put(row, column, cell);
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 19:03:19 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TableCollectors.java

        final Table<R, C, MutableCell<R, C, V>> table = HashBasedTable.create();
    
        void put(R row, C column, V value, BinaryOperator<V> merger) {
          MutableCell<R, C, V> oldCell = table.get(row, column);
          if (oldCell == null) {
            MutableCell<R, C, V> cell = new MutableCell<>(row, column, value);
            insertionOrder.add(cell);
            table.put(row, column, cell);
          } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TableCollectorsTest.java

      public void testToTable() {
        Collector<Cell<String, String, Integer>, ?, Table<String, String, Integer>> collector =
            TableCollectors.toTable(
                Cell::getRowKey, Cell::getColumnKey, Cell::getValue, HashBasedTable::create);
        BiPredicate<Table<String, String, Integer>, Table<String, String, Integer>> equivalence =
            pairwiseOnResultOf(Table::cellSet);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Tables.java

      }
    
      static boolean equalsImpl(Table<?, ?, ?> table, @Nullable Object obj) {
        if (obj == table) {
          return true;
        } else if (obj instanceof Table) {
          Table<?, ?, ?> that = (Table<?, ?, ?>) obj;
          return table.cellSet().equals(that.cellSet());
        } else {
          return false;
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Table.java

      /**
       * Copies all mappings from the specified table to this table. The effect is equivalent to calling
       * {@link #put} with each row key / column key / value mapping in {@code table}.
       *
       * @param table the table to add to this table
       */
      void putAll(Table<? extends R, ? extends C, ? extends V> table);
    
      /**
       * Removes the mapping, if any, associated with the given keys.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        if (supportsRemove()) {
          assertNull(table.remove("cat", 1));
          assertNull(table.remove("bar", 3));
          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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        table.put("cat", 1, 'b');
        table.clear();
        populate(table, data);
        return table;
      }
    
      public void testCreateExplicitComparators() {
        table = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString());
        table.put("foo", 3, 'a');
        table.put("foo", 12, 'b');
        table.put("bar", 5, 'c');
        table.put("cat", 8, 'd');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

      private static void populateForRowKeySet(
          Table<String, Integer, Character> table, String[] elements) {
        for (String row : elements) {
          table.put(row, 1, 'a');
          table.put(row, 2, 'b');
        }
      }
    
      private static void populateForColumnKeySet(
          Table<Integer, String, Character> table, String[] elements) {
        for (String column : elements) {
          table.put(1, column, 'a');
          table.put(2, column, 'b');
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TransposedTableTest.java

      @Override
      protected Table<String, Integer, Character> create(@Nullable Object... data) {
        Table<Integer, String, Character> original = HashBasedTable.create();
        Table<String, Integer, Character> table = transpose(original);
        table.clear();
        populate(table, data);
        return table;
      }
    
      public void testTransposeTransposed() {
        Table<Integer, String, Character> original = HashBasedTable.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        if (supportsRemove()) {
          assertNull(table.remove("cat", 1));
          assertNull(table.remove("bar", 3));
          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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top