Optional relationship to Sized, Stream and other
Graham Allan
grundlefleck at gmail.com
Fri Nov 16 04:33:49 PST 2012
Hi Michael,
You may find lambda-dev eerily quiet when Optional is brought up. The
discussion that lead to this post (
http://mail.openjdk.java.net/pipermail/lambda-dev/2012-October/006365.html
) may give you some context on why that might be.
HTH,
Graham
On 16 November 2012 11:20, Michael Nascimento <misterm at gmail.com> wrote:
> Hi guys,
>
> Just realized I missed Streamable as I took a look at the API, so
> Optional could implement it instead of just having a stream() method.
>
> Regards,
> Michael
>
> On Thu, Nov 15, 2012 at 11:38 PM, Michael Nascimento <misterm at gmail.com> wrote:
>> Hi folks,
>>
>> After finally taking a look at the latest Javadoc and thinking about
>> it, I really think Optional could be better integrated with the
>> Collections framework and Lambda libs if it:
>>
>> - Implemented Sized;
>> - Had a stream() method, allowing map to be called on the final result
>> only, for instance;
>> - Had a toSet() method
>>
>> Regards,
>> Michael
>
More information about the lambda-dev
mailing list