Updated State of the Collections
Arne Siegel
v.a.ammodytes at googlemail.com
Fri Nov 16 02:26:18 PST 2012
Just one observation: the proposed way to handle the "error" strategy for nulls won't compile,
as it fails to comply the contract for a Predicate:
filter(e -> { (if e == null) throw new NPE(); }
I can think of two compilable alternatives:
filter(e -> { (if e == null) throw new NPE(); else return true; }
tee(e -> { (if e == null) throw new NPE(); }
On 15 Nov 2012 at 13:31, Brian Goetz wrote:
> is here: http://cr.openjdk.java.net/~briangoetz/lambda/sotc3.html
>
More information about the lambda-dev
mailing list