Java.
rule.getPredicate().test(item))) { filteredItems.add(item); } } return filteredItems; } } Make Sample Target Object : public class Person { private String name; private int age; public Person(String name, int age) { this.name = name; this.age = age; } public String getName() { return name; } public