TreePath represents an array of objects that uniquely identify the path to a node in a tree. The elements of the array are ordered with the root as the first element of the array.
TreePath
represents an array of objects that uniquely identify the path to a node in a tree. The elements of the array are ordered with the root as the first element of the array.
For example, a file on the file system is uniquely identified based on the array of parent directories and the name of the file. The path /tmp/foo/bar
could be represented by a TreePath
as new TreePath(new Object[] {"tmp", "foo", "bar"})
.