MCPcopy Create free account
hub / github.com/antlr/codebuff / filterValues

Method filterValues

output/java_guava/1.4.19/Multimaps.java:2017–2019  ·  view source on GitHub ↗

Returns a multimap containing the mappings in unfiltered whose values satisfy a predicate. The returned multimap is a live view of unfiltered; changes to one affect the other. The resulting multimap's views have iterators that don't support remove(), but all other methods

(Multimap<K, V> unfiltered, final Predicate<? super V> valuePredicate)

Source from the content-addressed store, hash-verified

2015
2016
2017 public static <K, V> Multimap<K, V> filterValues(Multimap<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
2018 return filterEntries(unfiltered, Maps.<V>valuePredicateOnEntries(valuePredicate));
2019 }
2020
2021 /**
2022 * Returns a multimap containing the mappings in {@code unfiltered} whose values

Callers

nothing calls this directly

Calls 2

filterEntriesMethod · 0.95

Tested by

no test coverage detected