List of usage examples for java.util.function Predicate equals
public boolean equals(Object obj)
From source file:Main.java
static <E> List<E> filter(List<E> elements, Predicate<E> filter) { //TODO Implement me List<E> value = new ArrayList<>(); for (E element : elements) { if (!filter.equals(element)) { value.add(element);// ww w.j a va 2 s . co m } } return value; }