- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for cartesianProduct (0.17 seconds)
-
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) -
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 org.jspecify.annotations.Nullable; /** * Implementation of {@link Lists#cartesianProduct(List)}. * * @author Louis Wasserman */ @GwtCompatible final class CartesianList<E> extends AbstractList<List<E>> implements RandomAccess { private final transient ImmutableList<List<E>> axes;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 4.7K bytes - Click Count (0) -
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) -
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 org.jspecify.annotations.Nullable; /** * Implementation of {@link Lists#cartesianProduct(List)}. * * @author Louis Wasserman */ @GwtCompatible final class CartesianList<E> extends AbstractList<List<E>> implements RandomAccess { private final transient ImmutableList<List<E>> axes;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Lists.java
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) -
guava/src/com/google/common/collect/Lists.java
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) -
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) -
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) -
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) -
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)