Class CachedFileAttributes


  • public class CachedFileAttributes
    extends Object
    • Constructor Detail

      • CachedFileAttributes

        public CachedFileAttributes​(AbstractFile abstractFile,
                                    long length,
                                    long lastModified,
                                    boolean exists,
                                    boolean directory,
                                    boolean file,
                                    boolean link,
                                    boolean special)
        Attributes and AbstractFile attributes shoud be the same values (at the least on the creation).
      • CachedFileAttributes

        public CachedFileAttributes​(AbstractFile abstractFile)
        Not optimized approach directly derived from AbstractFile.
    • Method Detail

      • getAbstractFile

        public AbstractFile getAbstractFile()
        Returns:
        the original data source. Warning: linked AbstractFileSystem may be disconnected.
      • getName

        public String getName()
      • getPath

        public String getPath()
      • getParentPath

        public String getParentPath()
      • isHidden

        public boolean isHidden()
      • length

        public long length()
      • lastModified

        public long lastModified()
      • exists

        public boolean exists()
      • isDirectory

        public boolean isDirectory()
      • isFile

        public boolean isFile()
      • isLink

        public boolean isLink()
      • isSpecial

        public boolean isSpecial()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object