Guava SetMultimap not serializable (due to not serializable WrappedSet)
问题 I'm often using java serialization, which is very usefull to store a complete object hierarchy. When trying to serialize a SetMultimap, I got an exception saying that that AbstractMultimap.WrappedSet is not serializable. How do guava users workaround with this problem? Thanks in advance, 回答1: The views of elements of a multimap (such as the collections returned from get methods, the asMap view, etc.) are intentionally not serializable. However, it isn't true that a SetMultimap implementation