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

Method filterValues

output/java_guava/1.4.19/Maps.java:2429–2431  ·  view source on GitHub ↗

Returns a map containing the mappings in unfiltered whose values satisfy a predicate. The returned map is a live view of unfiltered; changes to one affect the other. The resulting map's keySet(), entrySet(), and values() views have iterators that don't sup

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

Source from the content-addressed store, hash-verified

2427
2428
2429 public static <K, V> Map<K, V> filterValues(Map<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
2430 return filterEntries(unfiltered, Maps.<V>valuePredicateOnEntries(valuePredicate));
2431 }
2432
2433 /**
2434 * Returns a sorted map containing the mappings in {@code unfiltered} whose

Callers

nothing calls this directly

Calls 2

filterEntriesMethod · 0.95

Tested by

no test coverage detected