Class FileAttributesReference

java.lang.Object
tv.hd3g.transfertfiles.FileAttributesReference
Direct Known Subclasses:
CachedFileAttributes

public class FileAttributesReference extends Object
  • Field Details

    • path

      protected final String path
    • length

      protected final long length
    • lastModified

      protected final long lastModified
    • exists

      protected final boolean exists
    • directory

      protected final boolean directory
    • file

      protected final boolean file
    • special

      protected final boolean special
  • Constructor Details

    • FileAttributesReference

      public FileAttributesReference(String path, long length, long lastModified, boolean exists, boolean directory, boolean file, boolean link, boolean special)
    • FileAttributesReference

      public FileAttributesReference(String path, long length, long lastModified, boolean exists, boolean directory)
      Create a regular file/dir
  • Method Details

    • 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