Home
last modified time | relevance | path

Searched refs:removeIf (Results 1 – 25 of 39) sorted by relevance

12

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionRemoveIfTester.java47 assertFalse("removeIf(x -> false) should return false", collection.removeIf(x -> false)); in testRemoveIf_alwaysFalse()
56 collection.removeIf(Predicate.isEqual(samples.e0()))); in testRemoveIf_sometimesTrue()
63 assertTrue("removeIf(x -> true) should return true", collection.removeIf(x -> true)); in testRemoveIf_allPresent()
72 assertTrue(collection.removeIf(Predicate.isEqual(samples.e0()))); in testRemoveIfSomeMatchesConcurrentWithIteration()
86 collection.removeIf( in testRemoveIf_unsupportedEmptyCollection()
99 collection.removeIf(x -> true); in testRemoveIf_alwaysTrueUnsupported()
/external/guava/guava/src/com/google/common/collect/
DCollections2.java152 Iterables.removeIf(unfiltered, predicate); in clear()
203 return removeIf(collection::contains); in removeAll()
208 return removeIf(element -> !collection.contains(element)); in retainAll()
212 public boolean removeIf(java.util.function.Predicate<? super E> filter) { in removeIf() method in Collections2.FilteredCollection
214 return unfiltered.removeIf(element -> predicate.apply(element) && filter.test(element)); in removeIf()
300 public boolean removeIf(java.util.function.Predicate<? super T> filter) { in removeIf() method in Collections2.TransformedCollection
302 return fromCollection.removeIf(element -> filter.test(function.apply(element))); in removeIf()
DFilteredMultimapValues.java74 return Iterables.removeIf( in removeAll()
83 return Iterables.removeIf( in retainAll()
DLists.java569 public boolean removeIf(Predicate<? super T> filter) { in removeIf() method
571 return fromList.removeIf(element -> filter.test(function.apply(element))); in removeIf()
625 public boolean removeIf(Predicate<? super T> filter) {
627 return fromList.removeIf(element -> filter.test(function.apply(element)));
DIterables.java194 public static <T> boolean removeIf(Iterable<T> removeFrom, Predicate<? super T> predicate) { in removeIf() method in Iterables
196 return ((Collection<T>) removeFrom).removeIf(predicate); in removeIf()
198 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
DImmutableCollection.java297 public final boolean removeIf(Predicate<? super E> filter) { in removeIf() method in ImmutableCollection
/external/guava/android/guava/src/com/google/common/collect/
DFilteredMultimapValues.java74 return Iterables.removeIf( in removeAll()
83 return Iterables.removeIf( in retainAll()
DIterables.java177 public static <T> boolean removeIf(Iterable<T> removeFrom, Predicate<? super T> predicate) { in removeIf() method in Iterables
181 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-logic/
Dcom_github_javaparser_symbolsolver_logic_AbstractClassDeclaration.txt6 …Line 51) superclasses.removeIf(s -> s.getQualifiedName().equals(Object.class.getCanonicalName())) …
/external/guava/guava-tests/test/com/google/common/collect/
DIterablesTest.java1055 Iterables.removeIf(
1065 Iterables.removeIf(
1083 Iterables.removeIf(
1093 Iterables.removeIf(
1116 Iterables.removeIf(
1126 Iterables.removeIf(
1140 Iterables.removeIf(
1150 Iterables.removeIf(
1171 Iterables.removeIf(
1181 Iterables.removeIf(
/external/guava/android/guava-tests/test/com/google/common/collect/
DIterablesTest.java1018 Iterables.removeIf(
1028 Iterables.removeIf(
1046 Iterables.removeIf(
1056 Iterables.removeIf(
1079 Iterables.removeIf(
1089 Iterables.removeIf(
1103 Iterables.removeIf(
1113 Iterables.removeIf(
1134 Iterables.removeIf(
1144 Iterables.removeIf(
/external/desugar/test/java/com/google/devtools/build/android/desugar/scan/testdata/
DCollectionReferences.java58 dates.removeIf(d -> d.getTime() < before); in expire()
/external/javaparser/javaparser-symbol-solver-logic/src/main/java/com/github/javaparser/symbolsolver/logic/
DAbstractClassDeclaration.java51 … if (superclasses.removeIf(s -> s.getQualifiedName().equals(Object.class.getCanonicalName()))) { in getAllSuperClasses()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-logic/com/github/javaparser/symbolsolver/logic/
DAbstractClassDeclaration.java51 … if (superclasses.removeIf(s -> s.getQualifiedName().equals(Object.class.getCanonicalName()))) { in getAllSuperClasses()
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMapTestSuiteBuilderTests.java220 public boolean removeIf(Predicate<? super Entry<String, String>> filter) {
221 return map.entrySet().removeIf(filter);
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java201 ancestors.removeIf(a -> a.getQualifiedName().equals(Object.class.getCanonicalName())); in getAllAncestors()
218 ancestors.removeIf(a -> a.getQualifiedName().equals(Object.class.getCanonicalName())); in getDirectAncestors()
/external/desugar/test/java/com/google/devtools/build/android/desugar/scan/
Dtestdata_golden.txt44 *** removeIf(java.util.function.Predicate);
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DCaliperConfigLoader.java85 Iterables.removeIf(map.values(), Predicates.equalTo("")); in mergeProperties()
/external/cldr/tools/java/org/unicode/cldr/api/
DXmlDataSource.java294 orderedElementIndices.elementSet().removeIf(s -> !path.containsElement(s)); in endElement()
299 valueAttributes.keySet().removeIf(k -> k.getElementName().equals(qName)); in endElement()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DNodeListTest.java238 void removeIf() {
245 …cd.getMembers().removeIf(m -> ((FieldDeclaration) m).getVariable(0).getName().getIdentifier().leng…
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DNodeText.java145 elements.removeIf(matcher::match); in remove()
DDifferenceElementCalculator.java239 …elements.removeIf(el -> el.getElement() instanceof CsmIndent || el.getElement() instanceof CsmUnin… in removeIndentationElements()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java253 map.values().removeIf(x -> x == 0); in removeAllZeros()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceType.java240 ancestors.removeIf(a -> a.getQualifiedName().equals(Object.class.getCanonicalName())); in getAllAncestors()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/
DNodeList.java375 public boolean removeIf(Predicate<? super N> filter) { in removeIf() method in NodeList

12