Because generics forbid primitive types, Function<Integer, Integer> boxes and unboxes every number passing through it. Java's primitive functional specializations avoid allocation completely, while default combinators let you snap small functions together like building blocks.
More lessons in Complete Core Java