Android examples for java.util:Collection Filter
remove All filtered value from Collection by Predicate
//package com.book2s; import java.util.Collection; import java.util.function.Predicate; public class Main { public static <T> void removeAll(Collection<T> toRemoveFrom, Predicate<T> predicate) { toRemoveFrom.removeIf(predicate); }/*from www . ja v a2 s .co m*/ }