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