Class CachedFileAttributes

java.lang.Object
tv.hd3g.transfertfiles.CachedFileAttributes

public class CachedFileAttributes extends Object
  • Constructor Details

    • 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 Details

    • notExists

      public static CachedFileAttributes notExists(AbstractFile abstractFile)
    • getAbstractFile

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

      public String getName()
    • getPath

      public String getPath()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object