Tree.

Add(Tree, int) Method

Summary

On adding a node to a tree, if it already exists, and if Tree#duplicates() returns false, #isDuplicateOf() will be called.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Foundation
Containing Type
Tree

Syntax

public virtual Tree Add(Tree newNode, int cmp)

Remarks

On adding a node to a tree, if it already exists, and if Tree#duplicates() returns false, #isDuplicateOf() will be called. The added node can then be asked for the node that prevails in the tree using #duplicateOrThis(). This mechanism allows doing find() and add() in one run.

Parameters

Name Type Description
newNode Tree
cmp int

Return Value

Type Description
Tree