Remove references to Predicate<T>

Predicates are from Java 8. This library should compile against java 7
in order to be usable on Android.