e.g.
class StackElement {
String method;
int state;
}
Stack<StackElement> stack;
I want to get a deep copy of this stack
, which contains StackElement
defined by myself.
Does Java provide a suitable API for this purpose ?
If not, how to implement it in a simple and general way ?