compare


Description:

public int compare (TreePath b)

Compares two paths.

If this appears before b in a tree, then -1 is returned. If b appears before this, then 1 is returned. If the two nodes are equal, then 0 is returned.

Parameters:

this

a TreePath-struct

b

a TreePath-struct to compare with

Returns:

the relative positions of this and b