RFR : JDK-8001642 : Add Optional<T>, OptionalDouble, OptionalInt, OptionalLong

Mike Duigou mike.duigou at oracle.com
Fri Mar 8 12:16:35 PST 2013

We talked to Kevin about their experiences with Guava's Optional. His response was that they felt reasonable hashCode/equals methods were obligatory and without them users would, if not immediately then eventually, curse us for not providing them. The implementations are added with grudging reluctance.


On Mar 4 2013, at 14:44 , Joe Bowbeer wrote:

> Last I read, the Optional hashCode and equals methods would support only the identity hashCode()/equals(), but they appear to be delegating to the value's methods, if present.
> Why the change?  Just wondering.
> On Mon, Mar 4, 2013 at 12:29 PM, Mike Duigou <mike.duigou at oracle.com> wrote:
> Optional<T>, OptionalDouble, OptionalInt and OptionalLong are now posted for review on core-libs and lambda-dev.
> Any comments can be sent to core-libs-dev or this list.
> http://cr.openjdk.java.net/~mduigou/JDK-8001642/0/webrev/
> Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130308/7d53d0d9/attachment.html 

More information about the lambda-libs-spec-experts mailing list