Class Directory


  • public class Directory
    extends java.lang.Object
    A directory.
    • Constructor Summary

      Constructors 
      Constructor Description
      Directory​(java.lang.String name, boolean isLeaf)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Get the name.
      boolean isLeaf()
      Test if directory has children.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Directory

        public Directory​(java.lang.String name,
                         boolean isLeaf)
        Constructor.
        Parameters:
        name - name of this directory
        isLeaf - is this directory a leaf
    • Method Detail

      • isLeaf

        public boolean isLeaf()
        Test if directory has children.
        Returns:
        true if this directory is a leaf
      • getName

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