MCPcopy Index your code
hub / github.com/jankotek/mapdb / clone

Method clone

src/main/java/org/mapdb/Serializer.java:625–625  ·  view source on GitHub ↗

Creates binary copy of given object. If the datatype is immutable the same instance might be returned

(A value)

Source from the content-addressed store, hash-verified

623
624 /** Creates binary copy of given object. If the datatype is immutable the same instance might be returned */
625 default A clone(A value) throws IOException {
626 DataOutput2 out = new DataOutput2();
627 serialize(out, value);
628 DataInput2 in2 = new DataInput2.ByteArray(out.copyBytes());

Callers 15

subtypeMethod · 0.80
serializeMethod · 0.80
dirPutMethod · 0.80
treePutMethod · 0.80
treeRemoveCollapsingMethod · 0.80
valueArrayUpdateValMethod · 0.80
valueArrayUpdateValMethod · 0.80
nextValueMethod · 0.80
nextValueMethod · 0.80
valueArrayUpdateValMethod · 0.80
SerializerArrayTupleMethod · 0.80
valueArrayUpdateValMethod · 0.80

Calls

no outgoing calls

Tested by 1

subtypeMethod · 0.64