Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 288 for table (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertTrue(table.contains("bar", 1));
        assertTrue(table.contains("foo", 3));
        assertFalse(table.contains("foo", 2));
        assertFalse(table.contains("bar", 3));
        assertFalse(table.contains("cat", 1));
        assertFalse(table.contains("foo", null));
        assertFalse(table.contains(null, 1));
        assertFalse(table.contains(null, null));
      }
    
      public void testContainsRow() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals(2, table.size());
          assertEquals((Character) 'a', table.get("foo", 1));
          assertEquals((Character) 'b', table.get("bar", 1));
          assertNull(table.get("foo", 3));
          assertNull(table.remove(null, 1));
          assertNull(table.remove("foo", null));
          assertNull(table.remove(null, null));
          assertSize(2);
        } else {
          try {
            table.remove("foo", 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeBasedTableRowMapInterfaceTest.java

        table.put("c", "b", "a");
        table.put("b", "b", "x");
        table.put("b", "c", "y");
        table.put("b", "x", "n");
        table.put("a", "a", "d");
        table.row("b").subMap("c", "x").clear();
        assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n"));
        table.row("b").subMap("b", "y").clear();
        assertEquals(table.row("b"), ImmutableMap.of());
        assertFalse(table.backingMap.containsKey("b"));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 29 15:15:31 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. 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');
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableTable.java

      }
    
      /**
       * Returns an immutable copy of the provided table.
       *
       * <p>The {@link Table#cellSet()} iteration order of the provided table determines the iteration
       * ordering of all views in the returned table. Note that some views of the original table and the
       * copied table may have different iteration orders. For more control over the ordering, create a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

              return OLD_WHITESPACE_TABLE.charAt(c % 79) == c;
            }
          };
    
      @Param private boolean useNew;
    
      @Param({"20", "50", "80"})
      private int percentMatching;
    
      private String teststring;
      private CharMatcher matcher;
    
      @BeforeExperiment
      protected void setUp() {
        BitSet bitSet = new BitSet();
        for (int i = 0; i < OLD_WHITESPACE_TABLE.length(); i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/UnmodifiableTableRowTest.java

      }
    
      @Override
      Table<Character, String, Integer> makeTable() {
        Table<Character, String, Integer> table = HashBasedTable.create();
        return Tables.unmodifiableTable(table);
      }
    
      @Override
      protected Map<String, Integer> makePopulatedMap() {
        Table<Character, String, Integer> table = HashBasedTable.create();
        table.put('a', "one", 1);
        table.put('a', "two", 2);
        table.put('a', "three", 3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TablesTransformValuesColumnMapTest.java

      }
    
      @Override
      Table<Integer, String, Character> makeTable() {
        Table<Integer, String, String> original = HashBasedTable.create();
        return Tables.transformValues(original, FIRST_CHARACTER);
      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        Table<Integer, String, String> table = HashBasedTable.create();
        table.put(1, "foo", "apple");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Tables.java

       * <p>The returned table will be serializable if the specified table is serializable.
       *
       * @param table the table to be wrapped in a synchronized view
       * @return a synchronized view of the specified table
       * @since 22.0
       */
      public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
          Table<R, C, V> synchronizedTable(Table<R, C, V> table) {
        return Synchronized.table(table, null);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * The pointer to a key is stored in hashTable[Hashing.smear(key.hashCode()) % table.length],
       * save that if that location is already full, we try the next index, and the next, until we
       * find an empty table position.  Since the table has a power-of-two size, we use
       * & (table.length - 1) instead of % table.length, though.
       */
    
      @CheckForNull private final transient Object hashTable;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
Back to top