RFR : JDK-8001642 : Add Optional<T>, OptionalDouble, OptionalInt, OptionalLong
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lambda-libs-spec-experts