- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,124 for Collection (0.11 sec)
-
guava/src/com/google/common/collect/Iterables.java
*/ public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) { if (iterable1 instanceof Collection && iterable2 instanceof Collection) { Collection<?> collection1 = (Collection<?>) iterable1; Collection<?> collection2 = (Collection<?>) iterable2; if (collection1.size() != collection2.size()) { return false; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 43.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
* </ol> * * @param collection the presumed-immutable collection * @param sampleElement an element of the same type as that contained by {@code collection}. * {@code collection} may or may not have {@code sampleElement} as a member. */ public static <E extends @Nullable Object> void assertCollectionIsUnmodifiable( Collection<E> collection, E sampleElement) { Collection<E> siblingCollection = new ArrayList<>();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 14.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java
/** * For documenting collections that support no optional features, such as {@link * java.util.Collections#emptySet} */ NONE; private final Set<Feature<? super Collection>> implied; CollectionFeature(Feature<? super Collection>... implied) { this.implied = copyToSet(implied); } @Override public Set<Feature<? super Collection>> getImpliedFeatures() { return implied;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java
K key = entry.getKey(); V value = entry.getValue(); Collection<V> collection = multimap().get(key); assertNotNull(collection); Collection<V> expectedCollection = copyToList(collection); multimap().remove(key, value); expectedCollection.remove(value); assertEqualIgnoringOrder(expectedCollection, collection); assertEquals(!expectedCollection.isEmpty(), multimap().containsKey(key));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
} public void testCopyOf_collectionContainingNull() { Collection<@Nullable String> c = MinimalCollection.of("a", null, "b"); assertThrows(NullPointerException.class, () -> copyOf((Collection<String>) c)); } enum TestEnum { A, B, C, D } public void testCopyOf_collection_enumSet() { Collection<TestEnum> c = EnumSet.of(TestEnum.A, TestEnum.B, TestEnum.D);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
public void testRemove_nullPresent() { collection = getSubjectGenerator().create(createArrayWithNullElement()); int initialSize = collection.size(); assertTrue("remove(null) should return true", collection.remove(null)); assertEquals( "remove(present) should decrease a collection's size by one.", initialSize - 1, collection.size()); expectMissing((E) null); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 21:04:02 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java
return suite; } protected Collection<Method> suppressForArrayDeque() { return emptySet(); } protected Collection<Method> suppressForLinkedList() { return emptySet(); } protected Collection<Method> suppressForArrayBlockingQueue() { return emptySet(); } protected Collection<Method> suppressForConcurrentLinkedQueue() { return emptySet(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 16:28:01 UTC 2025 - 7.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
while (entryIterator.hasNext()) { Entry<K, Collection<V>> entry = entryIterator.next(); K key = entry.getKey(); Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key)); if (!collection.isEmpty() && predicate.apply(Maps.<K, Collection<V>>immutableEntry(key, collection))) { if (collection.size() == entry.getValue().size()) { entryIterator.remove(); } else {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractListMultimap.java
return unmodifiableList((List<E>) collection); } @Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { return wrapList(key, (List<V>) collection, null); } // Following Javadoc copied from ListMultimap. /** * {@inheritDoc} * * <p>Because the values for a given key may have duplicates and follow the insertion ordering,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractConditionAggregation.java
throw new InvalidQueryRegisteredException(msg); } } protected void checkEsInvalidAggregationCollection(String name, Collection<?> values) { if (values == null || values.isEmpty()) { String msg = "Cannot register null or empty query collection: name=" + name + " values=" + values; throw new InvalidQueryRegisteredException(msg); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 12.4K bytes - Viewed (0)