Method References and partial application
Rémi Forax
forax at univ-mlv.fr
Sat Jun 25 05:07:14 PDT 2011
On 06/25/2011 01:38 PM, Ali Ebrahimi wrote:
> Hi Brian,
> Is partial application Support for Method References in current scope?
>
> class Test{
> public static int multiply(int x, int y){ return x * y;}
>
> public static void main(String... args){
> SAM2 sam2 = Test#multiply;
> SAM1 sam1 = Test#multiply(10,int);
> SAM0 sam0 = Test#multiply(10,20);
> SAM0 sam00 = sam1#apply(20);
> }
> }
>
> Best Regards,
> Ali Ebrahimi
Why only on method references and not on SAMs ?
rgds,
Rémi
More information about the lambda-dev
mailing list