Shouldn't Optional be Serializable?

Martin Buchholz martinrb at google.com
Fri Sep 20 12:46:56 PDT 2013


Both Collections.emptyList and Collections.singleton are serializable.
I think of Optional as a zero-or-one collection, so it should be
serializable too.


More information about the jdk8-dev mailing list