MCPcopy Create free account
hub / github.com/akeranen/the-one / replicate

Method replicate

core/Message.java:328–332  ·  view source on GitHub ↗

Returns a replicate of this message (identical except for the unique id) @return A replicate of the message

()

Source from the content-addressed store, hash-verified

326 * @return A replicate of the message
327 */
328 public Message replicate() {
329 Message m = new Message(from, to, id, size);
330 m.copyFrom(this);
331 return m;
332 }
333
334 /**
335 * Compares two messages by their ID (alphabetically).

Callers 4

sendMessageMethod · 0.95
DTNHostMethod · 0.45
startTransferMethod · 0.45
startTransferMethod · 0.45

Calls 1

copyFromMethod · 0.95

Tested by

no test coverage detected