Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for Row (0.18 sec)

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

        for (Map<C, V> row : rowMap().values()) {
          if (row.containsValue(value)) {
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean contains(@CheckForNull Object rowKey, @CheckForNull Object columnKey) {
        Map<C, V> row = Maps.safeGet(rowMap(), rowKey);
        return row != null && Maps.safeContainsKey(row, columnKey);
      }
    
      @Override
      @CheckForNull
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jul 15 15:41:16 GMT 2021
    - 6.1K bytes
    - Viewed (0)
  2. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/StandardTable.java

            rowIterator.remove();
            rowEntry = null;
          }
        }
      }
    
      @Override
      public Map<C, V> row(R rowKey) {
        return new Row(rowKey);
      }
    
      class Row extends IteratorBasedAbstractMap<C, V> {
        final R rowKey;
    
        Row(R rowKey) {
          this.rowKey = checkNotNull(rowKey);
        }
    
        @CheckForNull Map<C, V> backingRowMap;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 29.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TransposedTableTest.java

        assertSame(original.values(), transpose.values());
        assertEquals(original.row(1), transpose.column(1));
        assertEquals(original.row(2), transpose.column(2));
        assertEquals(original.column("foo"), transpose.row("foo"));
        assertEquals(original.column("bar"), transpose.row("bar"));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ArrayTableTest.java

      }
    
      public void testRowMissing() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Map<Integer, Character> row = table.row("dog");
        assertTrue(row.isEmpty());
        try {
          row.put(1, 'd');
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testColumnMissing() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ArrayTableTest.java

      }
    
      public void testRowMissing() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Map<Integer, Character> row = table.row("dog");
        assertTrue(row.isEmpty());
        try {
          row.put(1, 'd');
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testColumnMissing() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        validateTableCopies(table);
        // Even though rowKeySet, columnKeySet, and cellSet have the same
        // iteration ordering, row has an inconsistent ordering.
        assertThat(table.row('b').keySet()).containsExactly(1, 2).inOrder();
        assertThat(ImmutableTable.copyOf(table).row('b').keySet()).containsExactly(2, 1).inOrder();
      }
    
      public void testCopyOfSparse() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableTable.java

       * generated by applying the specified functions. If multiple inputs are mapped to the same row
       * and column pair, they will be combined with the specified merging function in encounter order.
       *
       * <p>The returned {@code Collector} will throw a {@code NullPointerException} at collection time
       * if the row, column, value, or merging functions return null on any input.
       *
       * @since 21.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 17.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        assertThat(table.rowKeySet()).containsExactly("foo", "bar").inOrder();
      }
    
      public void testRowOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.row("foo").keySet()).containsExactly(2, 3).inOrder();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. 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)
Back to top