|
distanceTo(toNode, expandTextEntities, expandFileEntities )
|
|
|
Parameters
|
Node toNode
The Node to which the distance is to be measured.
boolean expandTextEntities
Specifies whether or not text entities should be expanded when measuring the distance.
boolean expandFileEntities
Specifies whether or not file entities should be expanded when measuring the distance.
|
|
Returns
|
long. Returns the distance between this Node and toNode. If the distance cannot be calculated, returns -1.
|