- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 393 for ImmutableList (0.45 seconds)
-
guava/src/com/google/common/collect/Collections2.java
public static <E> Collection<List<E>> permutations(Collection<E> elements) { return new PermutationCollection<E>(ImmutableList.copyOf(elements)); } private static final class PermutationCollection<E> extends AbstractCollection<List<E>> { final ImmutableList<E> inputList; PermutationCollection(ImmutableList<E> input) { this.inputList = input; } @Override public int size() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 23K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/AbstractPackageSanityTestsTest.java
public void testFindClassesToTest_testClass() { assertThat(findClassesToTest(ImmutableList.of(EmptyTest.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTests.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTestCase.class))).isEmpty(); assertThat(findClassesToTest(ImmutableList.of(EmptyTestSuite.class))).isEmpty(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 02:48:50 GMT 2024 - 5.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
public void testPutAllNullForbidden() { assertThrows(NullPointerException.class, () -> multimap().putAll(null, singletonList(v3()))); } @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types @MapFeature.Require(SUPPORTS_PUT) public void testPutAllEmptyCollectionOnAbsentKey() { assertFalse(multimap().putAll(k3(), Collections.emptyList())); expectUnchanged();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 7.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Collections2.java
public static <E> Collection<List<E>> permutations(Collection<E> elements) { return new PermutationCollection<E>(ImmutableList.copyOf(elements)); } private static final class PermutationCollection<E> extends AbstractCollection<List<E>> { final ImmutableList<E> inputList; PermutationCollection(ImmutableList<E> input) { this.inputList = input; } @Override public int size() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 18.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
assertEquals(type, returnType.getRawType()); assertEquals( ImmutableList.copyOf(type.getTypeParameters()), ImmutableList.copyOf(returnType.getActualTypeArguments())); } public void testConstructor_exceptionTypes() throws Exception { assertEquals( ImmutableList.of(TypeToken.of(NullPointerException.class)),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
return this; } private ImmutableList<Invokable<?, ?>> getFactoriesToTest() { ImmutableList.Builder<Invokable<?, ?>> builder = ImmutableList.builder(); for (Invokable<?, ?> factory : factories) { if (returnTypeToTest.isAssignableFrom(factory.getReturnType().getRawType())) { builder.add(factory); } } ImmutableList<Invokable<?, ?>> factoriesToTest = builder.build();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 32.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/SingletonImmutableSet.java
return element.equals(target); } @Override public UnmodifiableIterator<E> iterator() { return singletonIterator(element); } @Override public ImmutableList<E> asList() { return ImmutableList.of(element); } @Override boolean isPartialView() { return false; } @Override int copyIntoArray(@Nullable Object[] dst, int offset) { dst[offset] = element;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} public void testCreateEmptyWithClass() { Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class); ms.add(Color.RED); } public void testCreateEmptyWithoutClassFails() { assertThrows( IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of())); } public void testToString() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.1K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
generator.addSampleInstances(String.class, ImmutableList.of("a")); assertThat(generator.generateFresh(String.class)).isEqualTo("a"); assertThat(generator.generateFresh(String.class)).isEqualTo("a"); } public void testAddSampleInstances_noInstance() { FreshValueGenerator generator = new FreshValueGenerator(); generator.addSampleInstances(String.class, ImmutableList.<String>of());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 18.6K bytes - Click Count (0)