Java. Best procedure to de-serialize a Java generic object?

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-06-11T17:56:44Z Indexed on 2010/06/11 18:32 UTC
Read the original article Hit count: 272

Filed under:
|
|

What is the best procedure for storing and retrieving, using native Java serialization, generic objects like ArrayList<String>?

Edit: To clarify. When I serialize an object of type ArrayList<String> I'd like to de-serialize to the same type of object. However, I know of no way to cast back to this generic object without causing warnings.

© Stack Overflow or respective owner

Related posts about java

Related posts about generics