Tree.

AddedOrExisting() Method

Summary

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

Syntax

public virtual Tree AddedOrExisting()

Remarks

On adding a node to a tree, if it already exists, and if Tree#duplicates() returns false, #onAttemptToAddDuplicate() will be called and the existing node will be stored in this._preceding. This node node can then be asked for the node that prevails in the tree on adding, using the #addedOrExisting() method. This mechanism allows doing find() and add() in one run.

Return Value

Type Description
Tree