List of usage examples for org.apache.commons.collections4 CollectionUtils find
@Deprecated public static <T> T find(final Iterable<T> collection, final Predicate<? super T> predicate)
From source file:org.waastad.javaeeangular.controller.ApplicationBean.java
private Customer findCustomer(List<Customer> list, final Integer id) { return CollectionUtils.find(list, new Predicate<Customer>() { @Override//from ww w . j a v a 2s . c o m public boolean evaluate(Customer t) { return t.getId().equals(id); } }); }