In Guava, we can do stuff like
Predicate<String> isEmpty = Predicates.compose(String::length, Integer.valueOf(0)::equals); // contrived, I know
Can we do something similar in Java 8? For example
Predicate<Integer> isZero = Integer.valueOf(0)::equals;
Predicate<String> isEmpty = isZero.compose(String::length);
or a library function that achives the same?
Note that I'm not asking about how to do this myself (s -> isZero.test(s.length)
works fine) or why this doesn't work in line (Lambda types are inferred and all that)