Re:Java 8 Features
by im3w1l on Friday May 30, 2014 @12:12PM
(#7822553)
Because of type erasure, all Optional<T> are the same type at runtime, so Optional<Integer> can't be overloaded with Optional<Boolean>, because at runtime it will be impossible to tell which method should be caled.
[ Parent
| on HN ]
There are no comments on this comment yet.