List of usage examples for com.google.common.collect Maps filterEntries
@CheckReturnValue public static <K, V> BiMap<K, V> filterEntries(BiMap<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate)
From source file:org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.java
private static Map<ConfigElement.PathIdentifier, Object> getManagedSubset( Map<ConfigElement.PathIdentifier, Object> m) { return Maps.filterEntries(m, new Predicate<Map.Entry<ConfigElement.PathIdentifier, Object>>() { @Override/*from ww w . j a v a2 s .c o m*/ public boolean apply(@Nullable Map.Entry<ConfigElement.PathIdentifier, Object> entry) { assert entry.getKey().element.isOption(); return ((ConfigOption) entry.getKey().element).isManaged(); } }); }