* Make a shallow copy of the ValdiMarshallableObject. */
| 85 | * Make a shallow copy of the ValdiMarshallableObject. |
| 86 | */ |
| 87 | fun <T: ValdiMarshallableObject> T.copy(): T { |
| 88 | val cls = this::class.java |
| 89 | return ValdiValueMarshallerRegistry.shared.copyObject(cls, this) |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Copy the ValdiMarshallableObject and apply the given visitor on the copied object |
no test coverage detected