java - Serializing Guava's ImmutableTable -
I am using version 17.0 of Guava , especially new collection types. While trying to write ImmutableTable
via a socket
, I realized that the class and its concrete implementation are not eligible for the serialization.
However, the following two tickets indicate that developers are aware of this problem:
irreversibleable
attributes? Map
s?
Although the immutabletable serialization is not eligible, you can always use one or more implementations. And after deserialization, using ImmutableTable.copyOf (deserialized) is not quite elegant to achieve immutabletable again, but is simple enough to implement.
Comments
Post a Comment