Don't push your luck ! :-p
On Thu, May 30, 2013 at 9:52 AM, Morten A-Gott < [email protected]> wrote: > With a the other day, Java 8's Optional is starting to look more > useful. It finally got filter, map and flatMap: > http://hg.openjdk.java.net/lambda/lambda/jdk/rev/fde3666e6394 > > Then, ifPresent was renamed to forEach: > http://hg.openjdk.java.net/lambda/lambda/jdk/rev/9d9753590439 > > Now, if we could get an factory method that will handle instansiation > with nulls, (like a fromNullable in guava, or the apply in Option in > Scala) creating Optionals would be a lot less verbose. No reason why > every developer should have to write a null check before creating an > Optional. > > And while they are at it, why not add 'exists' and 'forall' ? > > > -- > You received this message because you are subscribed to the Google Groups > "Java Posse" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/javaposse?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/javaposse?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
