Package spin.demo.complex
Class Directory
java.lang.Object
spin.demo.complex.Directory
A directory.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Directory
Constructor.- Parameters:
name
- name of this directoryisLeaf
- is this directory a leaf
-
-
Method Details
-
isLeaf
public boolean isLeaf()Test if directory has children.- Returns:
true
if this directory is a leaf
-
getName
Get the name.- Returns:
- name of this directory
-