Class Directory

java.lang.Object
spin.demo.complex.Directory

public class Directory extends Object
A directory.
  • Constructor Details

    • Directory

      public Directory(String name, boolean isLeaf)
      Constructor.
      Parameters:
      name - name of this directory
      isLeaf - 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

      public String getName()
      Get the name.
      Returns:
      name of this directory