public class ResultContainer<T implements java.io.Serializable>
implements java.io.Serializable{
int errorCode;
T result;
/* ... Few Other variables ... */
}
whats wrong in this code, I basically need a generic type(like a wrapper) for storing all my Results which contains the actual result with some other informations. Here i need both the actual Result class (i.e, ‘T’ here) and the ResultContainer Class to be serilizable.
How do i do this?
You have to use: