Copy constructor and implement Clonable
---------------------------------------
Key: ETCH-78
URL: https://issues.apache.org/jira/browse/ETCH-78
Project: Etch
Issue Type: New Feature
Components: java-binding
Environment: Java
Reporter: Shin Phuong
Priority: Minor
Request for a copy constructor or implement clonable for deep-copying for Java
Etch classes. (Or both)
Eg.
EtchObject old = new EtchObject(Field1 a, Field2 b...);
EtchObject clone = new EtchObject(old);
Copies all fields (including subfields (eg. Other Etch classes)) n-levels deep.
Where n is the number of levels of depth in the Etch object to be copied. The
new object will not reference any of the same objects inside the old.
struct EtchObject {
int field1 // level-0
List field2 // level-1 (all items in list, assuming objects inside list are
primitives; else level-n)
EtchObject2 field3;
}
struct EtchObject2 {
string name;
List field1a;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.