Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for cartesianProduct (0.24 seconds)

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

              Sets.newLinkedHashSet(Iterables.transform(set, Optional::fromNullable));
          optionalSets.add(optionalSet);
        }
        Set<List<Optional<?>>> cartesianProduct = Sets.cartesianProduct(optionalSets);
        return Iterables.transform(cartesianProduct, objs -> Lists.transform(objs, Optional::orNull));
      }
    
      private CacheBuilder<Object, Object> createCacheBuilder(
          @Nullable Integer concurrencyLevel,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package com.google.common.collect;
    
    import static com.google.common.collect.Lists.cartesianProduct;
    import static com.google.common.collect.Lists.transform;
    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.lang.Math.max;
    import static java.util.Arrays.asList;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 9K bytes
    - Click Count (0)
  3. android/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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  5. 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>> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 83K bytes
    - Click Count (0)
  6. 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>> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 81.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        List<List<Class<?>>> typesLists = new ArrayList<>();
        for (int i = 0; i < 2; i++) {
          typesLists.add(POSSIBLE_PARAM_TYPES);
          for (List<Class<?>> curr : Lists.cartesianProduct(typesLists)) {
            allOverloads.add(
                ImmutableList.<Class<?>>builder()
                    .add(predicateType)
                    .add(String.class) // the format string
                    .addAll(curr)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 19.1K bytes
    - Click Count (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(POSSIBLE_PARAM_TYPES);
          for (List<Class<?>> curr : Lists.cartesianProduct(typesLists)) {
            allOverloads.add(
                ImmutableList.<Class<?>>builder()
                    .add(predicateType)
                    .add(String.class) // the format string
                    .addAll(curr)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 19.1K bytes
    - Click Count (0)
Back to Top