MCPcopy Create free account
hub / github.com/Snapchat/Valdi / copy

Function copy

valdi/src/java/com/snap/valdi/utils/ValdiMarshallableObject.kt:87–90  ·  view source on GitHub ↗

* Make a shallow copy of the ValdiMarshallableObject. */

Source from the content-addressed store, hash-verified

85 * Make a shallow copy of the ValdiMarshallableObject.
86 */
87fun <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

Callers 6

copyMethod · 0.85
copyingFunction · 0.85
flattenFunction · 0.85
copy_stringsFunction · 0.85
mainFunction · 0.85
fromCppMethod · 0.85

Calls 1

copyObjectMethod · 0.45

Tested by

no test coverage detected