Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for cartesianProduct (0.12 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/CartesianList.java

    import java.util.AbstractList;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.RandomAccess;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@link Lists#cartesianProduct(List)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class CartesianList<E> extends AbstractList<List<E>> implements RandomAccess {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/collect/CartesianList.java

    import java.util.AbstractList;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.RandomAccess;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@link Lists#cartesianProduct(List)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class CartesianList<E> extends AbstractList<List<E>> implements RandomAccess {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. 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)
  8. 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