This content has been marked as final. Show 3 replies
This would be an API breaking change and I don't see a reason for it. People using lambda expression won't care if one passes a Callback or Function because the compiler does generate the appropriate bytecode representing the SAM type.
I guess I was envisioning scenarios where a (FX agnostic) business layer exposed Functions for manipulating data in the model. But I suppose "converting" these to Callbacks becomes completely trivial using function references... I was still thinking with my Java 7 hat on.
It still seems a bit unwieldy to have different core APIs replicating identical functionality, though.
It still seems a bit unwieldy to have different core APIs replicating identical functionality, though.Java 8 will include a Java Time API which will contain classes such as:
java.time.Duration and java.time.Period.
JavaFX also contains javafx.util.Duration