Creates binary copy of given object. If the datatype is immutable the same instance might be returned
(A value)
| 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()); |
no outgoing calls