Is Comparator SAM interface ?
Neal Gafter
neal at gafter.com
Sun Jan 10 22:17:31 PST 2010
On Sun, Jan 10, 2010 at 10:02 AM, Artur Biesiadowski <abies at adres.pl> wrote:
> For the function conversion, straw-man proposal is expecting interfaces
> defining just one method. It might require wording differently - if read
> literally, java.util.Comparator is not suitable for function conversion,
> because it restates 'equals' in the interface in addition to compare.
> Same goes for Predicate in google collections and probably some other
> classes in different libraries.
Until we have a draft specification, it's hard to know if this is an
issue or not. This is on the open issue list of CfJ 0.6a at
<http://www.javac.info/issues-v06a.html>, fourth item.
Cheers,
Neal
More information about the lambda-dev
mailing list