Lambdas and serialization

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Oct 27 04:00:04 PDT 2010


> btw: what happens with comparator? it's not a SAM (2 methods - compare,
> equals), but seems to be a very wanted case for lambdas?
>
>    
The definition of SAM does not take into account methods inherithed from 
java.lang.Object. Which means that Comparator<T> really has just one 
relevant target method and therefore can be used as the target of a SAM 
conversion.

Maurizio


More information about the lambda-dev mailing list