Class AbstractFile


  • public class AbstractFile
    extends java.lang.Object
    A simple file abtraction, just pairing a name with metadata.
    Author:
    hb
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFile()  
      AbstractFile​(java.lang.String name, boolean folder, long modified)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getModified()  
      java.lang.String getName()  
      boolean isFolder()  
      void setName​(java.lang.String name)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • AbstractFile

        public AbstractFile()
      • AbstractFile

        public AbstractFile​(java.lang.String name,
                            boolean folder,
                            long modified)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • isFolder

        public boolean isFolder()
      • getModified

        public long getModified()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object