Note on java.util.functions
Brian Goetz
brian.goetz at oracle.com
Wed May 23 10:04:00 PDT 2012
JSR-341 introduces a static-extension-method-like mechanism into EL, but
EL has nothing to do with the Java language or libraries. Think of
EL/JSR-341 as just another scripting language. We can't possibly align
the Java language and libraries with all the scripting languages that
will be built on top of the JVM, nor would we want to.
On 5/23/2012 11:55 AM, Neal Gafter wrote:
> On Tue, May 22, 2012 at 11:45 AM, Brian Goetz <brian.goetz at oracle.com
> <mailto:brian.goetz at oracle.com>> wrote:
>
> Yes, naming is still up in the air. First nailing down semantics...
>
>
> Are you planning to synchronize the naming with the work of jsr341,
> which calls this method singleOrDefault()?
>
> 2.3.32 singleOrDefault Operator
> The singleOrDefault operator returns the single element of a collection,
> or a default value of null if no element is found.
> 2.3.32.1 Syntax
> S Iterable<S>.singleOrDefault()
> S Iterable<S>.singleOrDefaultOrDefault((S->boolean) predicate)
>
More information about the lambda-dev
mailing list