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

Method filterValues

output/java_guava/1.4.17/Maps.java:2427–2429  ·  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

2425
2426
2427 public static <K, V> Map<K, V> filterValues(Map<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
2428 return filterEntries(unfiltered, Maps.<V>valuePredicateOnEntries(valuePredicate));
2429 }
2430
2431 /**
2432 * 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