Request for Review (#2) : CR#8001634 : Initial set of lambda functional interfaces
brian.goetz at oracle.com
Tue Nov 13 20:14:00 UTC 2012
> I've updated the webrev for the first set of lambda functional interfaces (JSR-335) with the feedback from the first review round. The updated webrev is:
> This update includes:
> - Mapper.map becomes Function.apply
> - Factory.make becomes Supplier.get
> - Specializations of Supplier for int, long, double
> - Reorder type variables to put result last
> - Fixes many javadoc and stylistic comments.
> What didn't change:
> - Block was not renamed to Action or Procedure. The name Block.apply currently conflicts with Function.apply and should be renamed. Block.accept? Block.perform?
Also, to allow IntFunction<T> to implement Function<T,Integer>, need to
adjust the method names. Propose
Similarly, need to do the same for Supplier:
with appropriate defaults for the specialized versions.
More information about the core-libs-dev