Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for rows (0.18 sec)

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

        this.cellColumnInRowIndices = cellColumnInRowIndices;
        ImmutableMap.Builder<R, ImmutableMap<C, V>> rowBuilder =
            new ImmutableMap.Builder<>(rows.size());
        for (Entry<R, Map<C, V>> row : rows.entrySet()) {
          rowBuilder.put(row.getKey(), ImmutableMap.copyOf(row.getValue()));
        }
        this.rowMap = rowBuilder.buildOrThrow();
    
        ImmutableMap.Builder<C, ImmutableMap<R, V>> columnBuilder =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/StandardRowSortedTable.java

    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@code Table} whose iteration ordering across row keys is sorted by their
     * natural ordering or by a supplied comparator. Note that iterations across the columns keys for a
     * single row key may or may not be ordered, depending on the implementation. When rows and columns
     * are both sorted, it's easier to use the {@link TreeBasedTable} subclass.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableTable.java

           * documented in the Javadoc. If a row Comparator is provided, cellSet() iterates across the
           * columns in the first row, the columns in the second row, etc. If a column Comparator is
           * provided but a row Comparator isn't, cellSet() iterates across the rows in the first
           * column, the rows in the second column, etc.
           */
          Comparator<Cell<R, C, V>> comparator =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/RowSortedTable.java

    import java.util.Map;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Interface that extends {@code Table} and whose rows are sorted.
     *
     * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link #rowMap} method
     * returns a {@link SortedMap}, instead of the {@link Set} and {@link Map} specified by the {@link
     * Table} interface.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TableCollectors.java

        private final R row;
        private final C column;
        private V value;
    
        MutableCell(R row, C column, V value) {
          this.row = checkNotNull(row, "row");
          this.column = checkNotNull(column, "column");
          this.value = checkNotNull(value, "value");
        }
    
        @Override
        public R getRowKey() {
          return row;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractTableTest.java

          Map<Integer, C> row = table.row("foo");
          assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row);
          table.remove("foo", 3);
          assertEquals(ImmutableMap.of(1, 'a'), row);
          table.remove("foo", 1);
          assertEquals(ImmutableMap.of(), row);
          table.put("foo", 2, cellValue('b'));
          assertEquals(ImmutableMap.of(2, 'b'), row);
          row.clear();
          assertEquals(ImmutableMap.of(), row);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/HashBasedTable.java

     * Null row keys, columns keys, and values are not supported.
     *
     * <p>Lookups by row key are often faster than lookups by column key, because the data is stored in
     * a {@code Map<R, Map<C, V>>}. A method call like {@code column(columnKey).get(rowKey)} still runs
     * quickly, since the row key is provided. However, {@code column(columnKey).size()} takes longer,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap());
      }
    
      public void testRow() {
        assertEquals(ImmutableMap.of(), testTable.row('A'));
        assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a'));
      }
    
      public void testRowKeySet() {
        assertEquals(ImmutableSet.of('a'), testTable.rowKeySet());
      }
    
      public void testRowMap() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

    import java.util.Collections;
    import java.util.List;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestResult;
    
    /**
     * @author Max Ross
     */
    public class FeatureSpecificTestSuiteBuilderTest extends TestCase {
      private static final class MyTestSuiteBuilder
          extends FeatureSpecificTestSuiteBuilder<MyTestSuiteBuilder, String> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/UnmodifiableRowSortedTableRowTest.java

        table.put('a', "one", 1);
        table.put('a', "two", 2);
        table.put('a', "three", 3);
        table.put('b', "four", 4);
        return Tables.unmodifiableRowSortedTable(table).row('a');
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top