- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 768 for lists (0.05 sec)
-
guava/src/com/google/common/collect/Lists.java
* a provided list is null * @since 19.0 */ public static <B> List<List<B>> cartesianProduct(List<? extends List<? extends B>> lists) { return CartesianList.create(lists); } /** * Returns every possible list that can be formed by choosing one element from each of the given
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result)); assertEquals("[1, 4, 7, 8, 9, 10]", result.toString()); } public void testConcatNullPointerException() { List<Integer> list1 = newArrayList(1); List<Integer> list2 = newArrayList(4); assertThrows(NullPointerException.class, () -> FluentIterable.concat(list1, null, list2)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 30.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
List<@Nullable Integer> list1 = Lists.newArrayList(); List<@Nullable Integer> list2 = Lists.newArrayList(1); List<@Nullable Integer> list3 = Lists.newArrayList(1, 1); List<@Nullable Integer> list4 = Lists.newArrayList(1, 2); List<@Nullable Integer> list5 = Lists.newArrayList(1, null, 2); List<@Nullable Integer> list6 = Lists.newArrayList(2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
List<@Nullable Integer> list1 = Lists.newArrayList(); List<@Nullable Integer> list2 = Lists.newArrayList(1); List<@Nullable Integer> list3 = Lists.newArrayList(1, 1); List<@Nullable Integer> list4 = Lists.newArrayList(1, 2); List<@Nullable Integer> list5 = Lists.newArrayList(1, null, 2); List<@Nullable Integer> list6 = Lists.newArrayList(2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result)); assertEquals("[1, 4, 7, 8, 9, 10]", result.toString()); } public void testConcatNullPointerException() { List<Integer> list1 = newArrayList(1); List<Integer> list2 = newArrayList(4); assertThrows(NullPointerException.class, () -> Iterables.concat(list1, null, list2)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:12:33 UTC 2024 - 45K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
assertThrows( NullPointerException.class, () -> multimap().putAll(k3(), Lists.newArrayList(v3(), null))); Collection<V> values = multimap().get(k3()); if (values.size() == 0) { expectUnchanged(); // Be extra thorough in case internal state was corrupted by the expected null. assertEquals(Lists.newArrayList(), Lists.newArrayList(values)); assertEquals(size, multimap().size()); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
} public void testCartesianProduct_unrelatedTypes() { List<Integer> x = list(1, 2); List<String> y = list("3", "4"); List<Object> exp1 = list((Object) 1, "3"); List<Object> exp2 = list((Object) 1, "4"); List<Object> exp3 = list((Object) 2, "3"); List<Object> exp4 = list((Object) 2, "4"); assertThat(Lists.<Object>cartesianProduct(x, y))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
} public void testCartesianProduct_unrelatedTypes() { List<Integer> x = list(1, 2); List<String> y = list("3", "4"); List<Object> exp1 = list((Object) 1, "3"); List<Object> exp2 = list((Object) 1, "4"); List<Object> exp3 = list((Object) 2, "3"); List<Object> exp4 = list((Object) 2, "4"); assertThat(Lists.<Object>cartesianProduct(x, y))
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
List<String> list = Lists.newArrayList(elements); list.add("zzz"); return ImmutableSortedSet.copyOf(list).headSet("zzy"); } } public static class ImmutableSortedSetTailsetGenerator extends TestStringSortedSetGenerator { @Override protected SortedSet<String> create(String[] elements) { List<String> list = Lists.newArrayList(elements); list.add("\0");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testAll() { List<String> list = Lists.newArrayList(); Predicate<String> predicate = equalTo("cool"); assertTrue(all(list.iterator(), predicate)); list.add("cool"); assertTrue(all(list.iterator(), predicate)); list.add("pants"); assertFalse(all(list.iterator(), predicate)); } public void testFind_firstElement() { Iterable<String> list = Lists.newArrayList("cool", "pants");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0)