Optional relationship to Sized, Stream and other

Michael Nascimento misterm at gmail.com
Fri Nov 16 03:20:51 PST 2012


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