- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 62 for retainAll (0.07 sec)
-
guava-tests/test/com/google/common/collect/IterablesTest.java
} public void testRetainAll_collection() { List<String> list = newArrayList("a", "b", "c", "d", "e"); assertTrue(Iterables.retainAll(list, newArrayList("b", "d", "f"))); assertEquals(newArrayList("b", "d"), list); assertFalse(Iterables.retainAll(list, newArrayList("b", "e", "d"))); assertEquals(newArrayList("b", "d"), list); } public void testRetainAll_iterable() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/QueryResponseListTest.java
QueryResponseList qrList = new QueryResponseList(documentList, 0, 10, 0); // Test removeAll and retainAll with empty collection assertFalse(qrList.removeAll(new ArrayList<>())); assertEquals(1, qrList.size()); assertTrue(qrList.retainAll(new ArrayList<>())); assertEquals(0, qrList.size()); } public void test_facetResponse_constructor() {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 39.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractBehavior.java
} public boolean removeAll(final Collection<?> c) { return parent.removeAll(c); } public boolean retainAll(final Collection<?> c) { return parent.retainAll(c); } public void clear() { parent.clear(); } public boolean equals(final Object o) { return parent.equals(o);Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jun 21 04:02:44 UTC 2025 - 26.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java
SortedSet<String> subset = elementSet.subSet("b", "f"); assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); assertTrue(subset.retainAll(asList("a", "c"))); assertThat(elementSet).containsExactly("a", "c", "f").inOrder(); assertThat(subset).containsExactly("c"); assertEquals(5, ms.size()); } public void testElementSetSubsetClear() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* Multiset)}. * * <p>This method refines {@link Collection#retainAll} to further specify that it <b>may not</b> * throw an exception in response to any of {@code elements} being null or of the wrong type. * * @see Multisets#retainOccurrences(Multiset, Multiset) */ @CanIgnoreReturnValue @Override boolean retainAll(Collection<?> c);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 19.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
*/ @Deprecated public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) { Set<T> result = copyToSet(set1); result.retainAll(set2); return result; } private FeatureUtil() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java
*/ @Deprecated public static <T> Set<T> intersection(Set<? extends T> set1, Set<? extends T> set2) { Set<T> result = copyToSet(set1); result.retainAll(set2); return result; } private FeatureUtil() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 12.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multiset.java
* Multiset)}. * * <p>This method refines {@link Collection#retainAll} to further specify that it <b>may not</b> * throw an exception in response to any of {@code elements} being null or of the wrong type. * * @see Multisets#retainOccurrences(Multiset, Multiset) */ @CanIgnoreReturnValue @Override boolean retainAll(Collection<?> c); /** * {@inheritDoc} *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 20.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
removeIfEmpty(); } return changed; } @Override public boolean retainAll(Collection<?> c) { checkNotNull(c); int oldSize = size(); // calls refreshIfEmpty boolean changed = delegate.retainAll(c); if (changed) { int newSize = delegate.size(); totalSize += newSize - oldSize; removeIfEmpty(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Aug 12 15:51:57 UTC 2025 - 48.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
* * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public final boolean retainAll(Collection<?> elementsToKeep) { throw new UnsupportedOperationException(); } /** * Guaranteed to throw an exception and leave the collection unmodified. *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.7K bytes - Viewed (0)