- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,124 for Collection (0.23 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java
} private static <E> ImmutableList<E> copyFromCollection(Collection<? extends E> collection) { Object[] elements = collection.toArray(); switch (elements.length) { case 0: return of(); case 1: @SuppressWarnings("unchecked") // safe because it came from `collection` E element = (E) elements[0]; return of(element); default:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 11.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
public void testPermutationSetEmpty() { Collection<List<Integer>> permutationSet = Collections2.permutations(Collections.<Integer>emptyList()); assertEquals(1, permutationSet.size()); assertTrue(permutationSet.contains(Collections.<Integer>emptyList())); Iterator<List<Integer>> permutations = permutationSet.iterator(); assertNextPermutation(Collections.<Integer>emptyList(), permutations);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java
multimap.put("a", -3); multimap.put("z", -2); return multimap; } @Override protected Map<String, Collection<Integer>> makeEmptyMap() { return createMultimap().asMap().subMap("e", "p"); } @Override protected Map<String, Collection<Integer>> makePopulatedMap() { TreeMultimap<String, Integer> multimap = createMultimap(); multimap.put("f", 1); multimap.put("f", 2);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
*/ package org.codelibs.core.io; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.collection.CollectionsUtil.newArrayList; import static org.codelibs.core.collection.CollectionsUtil.newConcurrentHashMap; import static org.codelibs.core.collection.CollectionsUtil.newHashSet; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/CollectionsUtil.java
} /** * Returns {@literal true} if the given {@link Collection} is {@literal null} or empty. * * @param collection the collection * @return {@literal true} if the collection is {@literal null} or empty */ public static boolean isEmpty(final Collection<?> collection) { return collection == null || collection.isEmpty(); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 49.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
checkNotNull(collection); return (collection instanceof EnumSet) ? EnumSet.complementOf((EnumSet<E>) collection) : makeComplementByHand(collection, type); } @J2ktIncompatible @GwtIncompatible private static <E extends Enum<E>> EnumSet<E> makeComplementByHand( Collection<E> collection, Class<E> type) { EnumSet<E> result = EnumSet.allOf(type);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
} public void testCopyOf_shortcut_empty() { Collection<String> c = ImmutableList.of(); assertSame(c, ImmutableList.copyOf(c)); } public void testCopyOf_shortcut_singleton() { Collection<String> c = ImmutableList.of("a"); assertSame(c, ImmutableList.copyOf(c)); } public void testCopyOf_shortcut_immutableList() { Collection<String> c = ImmutableList.of("a", "b", "c");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0) -
src/test/resources/data/gsaconfig.xml
]]></testwords> </collection> <collection Name="n2sm"> <bad_urls><![CDATA[ contains:\\.xml$ ]]></bad_urls> <good_urls><![CDATA[ https://www.n2sm.net/ ]]></good_urls> <prerequisite_results><![CDATA[ 20 ]]></prerequisite_results> <testwords><![CDATA[ ]]></testwords> </collection> <collection Name="smb"> <bad_urls><![CDATA[
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun May 13 06:51:57 UTC 2018 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java
public void testEntrySetEquals() { resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3())); Set<Entry<K, Collection<V>>> expected = new HashSet<>(); expected.add(mapEntry(k0(), (Collection<V>) newHashSet(v0(), v3()))); expected.add(mapEntry(k1(), (Collection<V>) newHashSet(v0()))); new EqualsTester().addEqualityGroup(expected, multimap().asMap().entrySet()).testEquals(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java
resetContainer(); int size = getNumElements(); Collection<V> collection = multimap().asMap().get(key); assertNotNull(collection); Collection<V> expectedCollection = copyToList(collection); multimap().put(key, v3()); expectedCollection.add(v3()); assertEqualIgnoringOrder(expectedCollection, collection); assertEquals(size + 1, multimap().size()); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.3K bytes - Viewed (0)