Which subclasses of collection can be serialized?


there is already a serializer in SpiderMonkey, which was created to serialize Collection and its subclasses. Which subclasses can be serialized using this very serializer? ArrayList? LinkedList? Queues? All subclasses? Can you tell us about the conditions a subclass to Collection has to fulfill??

Thanks in advance,

gz, Fellkneul

When you register a collection serializer you need to register the implementation class to the serializer aswell. The default collection serializer will be used. The collection serializer deserializes to ArrayList at the receiving side, since there’s no current way to determine the type of Collection used.