Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for cartesianProduct (1.94 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)
Back to top