Oops, Filter should be deleted, it was there before I introduced Predicate (which is more consistent with the java 8 APIs).