Class Leaf



  • public class Leaf
    extends Entry
    A class representing a leaf within the file tree.
    • Constructor Detail

      • Leaf

        public Leaf(Node parent,
                    File file)
        Create a new Leaf that is a child of the denoted parent with the denoted file.
        Parameters:
        parent - the parent node this leaf is a child of.
        file - the file represented.
    • Method Detail

      • getId

        public int getId()
        Returns:
        the unique identifier of this leaf.
      • getFile

        public File getFile()
        Returns:
        the file represented by this leaf.
      • toString

        public String toString()