tuweni / org.apache.tuweni.kademlia / KademliaRoutingTable / add

add

fun add(node: T): T? (source)

Add a node to the table.

Parameters

node - the node to add

Return
null if the node was successfully added to the table (or already in the table). Otherwise, a node will be returned that is a suitable candidate for eviction, and the provided node will be stored in the replacements list.