public interface Node
Note that the Object.equals(java.lang.Object)
method
must be implemented in such a way that two Nodes referring to the
same point in the file system are considered equal.
(Don't forget to implement Object.hashCode()
consistently with equals
too).
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this node.
|
Branch |
getParent()
Returns the parent branch of this node.
|
java.lang.String getName()
Branch getParent()
null
.