Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for Staples (0.14 sec)

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

        CollectorTester.of(collector)
            .expectCollects(ImmutableTable.of())
            .expectCollects(
                ImmutableTable.of("one", "uno", 3),
                Tables.immutableCell("one", "uno", 1),
                Tables.immutableCell("one", "uno", 2));
      }
    
      public void testBuilder() {
        ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 20K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Table.java

     *
     * <h3>Implementations</h3>
     *
     * <ul>
     *   <li>{@link ImmutableTable}
     *   <li>{@link HashBasedTable}
     *   <li>{@link TreeBasedTable}
     *   <li>{@link ArrayTable}
     *   <li>{@link Tables#newCustomTable Tables.newCustomTable}
     * </ul>
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#table">{@code Table}</a>.
     *
     * @author Jared Levy
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.SortedMapDifference;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.SortedSetMultimap;
    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  4. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.SortedMapDifference;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.SortedSetMultimap;
    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSet.java

        }
      }
    
      private static boolean shouldTrim(int actualUnique, int expectedUnique) {
        return actualUnique < (expectedUnique >> 1) + (expectedUnique >> 2);
      }
    
      // We use power-of-2 tables, and this is the highest int that's a power of 2
      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ArrayTable.java

            size(), Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.DISTINCT, this::getCell);
      }
    
      private Cell<R, C, @Nullable V> getCell(final int index) {
        return new Tables.AbstractCell<R, C, @Nullable V>() {
          final int rowIndex = index / columnList.size();
          final int columnIndex = index % columnList.size();
    
          @Override
          public R getRowKey() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

      Equivalence<Object> getValueEquivalence() {
        return MoreObjects.firstNonNull(valueEquivalence, getValueStrength().defaultEquivalence());
      }
    
      /**
       * Sets the minimum total size for the internal hash tables. For example, if the initial capacity
       * is {@code 60}, and the concurrency level is {@code 8}, then eight segments are created, each
       * having a hash table of size eight. Providing a large enough estimate at construction time
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableTable.java

        return Tables.immutableCell(
            checkNotNull(rowKey, "rowKey"),
            checkNotNull(columnKey, "columnKey"),
            checkNotNull(value, "value"));
      }
    
      /**
       * A builder for creating immutable table instances, especially {@code public static final} tables
       * ("constant tables"). Example:
       *
       * <pre>{@code
    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/ImmutableTableTest.java

        assertEquals(
            ImmutableTable.of('a', 1, "foo"), builder.put(Tables.immutableCell('a', 1, "foo")).build());
      }
    
      public void testBuilder_withImmutableCellAndNullContents() {
        ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>();
        try {
          builder.put(Tables.immutableCell((Character) null, 1, "foo"));
          fail();
        } catch (NullPointerException e) {
    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)
  10. guava-tests/test/com/google/common/collect/ArrayTableTest.java

        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Cell<String, Integer, Character> cell = table.cellSet().iterator().next();
        assertEquals(Tables.immutableCell("foo", 1, 'a'), cell);
        assertEquals((Character) 'a', table.put("foo", 1, 'd'));
        assertEquals(Tables.immutableCell("foo", 1, 'd'), cell);
      }
    
      public void testRowMissing() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    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)
Back to top