Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cartesianProduct (0.07 sec)

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

        Set<List<Integer>> degenerate = cartesianProduct();
        checkHashCode(degenerate);
    
        checkHashCode(cartesianProduct(set(1, 2)));
    
        int num = Integer.MAX_VALUE / 3 * 2; // tickle overflow-related problems
        checkHashCode(cartesianProduct(set(1, 2, num)));
    
        Set<Integer> mt = emptySet();
        checkHashCode(cartesianProduct(mt, mt));
        checkHashCode(cartesianProduct(mt, set(num)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertThat(cartesianProduct(list(1), list(2))).contains(list(1, 2));
      }
    
      public void testCartesianProduct_binary1x2() {
        assertThat(cartesianProduct(list(1), list(2, 3)))
            .containsExactly(list(1, 2), list(1, 3))
            .inOrder();
      }
    
      public void testCartesianProduct_binary2x2() {
        assertThat(cartesianProduct(list(1, 2), list(3, 4)))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ListsTest.java

        assertThat(cartesianProduct(list(1), list(2))).contains(list(1, 2));
      }
    
      public void testCartesianProduct_binary1x2() {
        assertThat(cartesianProduct(list(1), list(2, 3)))
            .containsExactly(list(1, 2), list(1, 3))
            .inOrder();
      }
    
      public void testCartesianProduct_binary2x2() {
        assertThat(cartesianProduct(list(1, 2), list(3, 4)))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Lists.java

       *     a provided list is null
       * @since 19.0
       */
      @SafeVarargs
      public static <B> List<List<B>> cartesianProduct(List<? extends B>... lists) {
        return cartesianProduct(Arrays.asList(lists));
      }
    
      /**
       * Returns a list that applies {@code function} to each element of {@code fromList}. The returned
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

       * @throws IllegalArgumentException if the cartesian product size exceeds the {@code int} range
       * @since 2.0
       */
      @SafeVarargs
      public static <B> Set<List<B>> cartesianProduct(Set<? extends B>... sets) {
        return cartesianProduct(asList(sets));
      }
    
      private static final class CartesianSet<E> extends ForwardingCollection<List<E>>
          implements Set<List<E>> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/PreconditionsTest.java

        List<List<Class<?>>> typesLists = new ArrayList<>();
        for (int i = 0; i < 2; i++) {
          typesLists.add(possibleParamTypes);
          for (List<Class<?>> curr : Lists.cartesianProduct(typesLists)) {
            allOverloads.add(
                ImmutableList.<Class<?>>builder()
                    .add(predicateType)
                    .add(String.class) // the format string
                    .addAll(curr)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top