Package tv.hd3g.transfertfiles
Class CachedFileAttributes
java.lang.Object
tv.hd3g.transfertfiles.FileAttributesReference
tv.hd3g.transfertfiles.CachedFileAttributes
-
Field Summary
Fields inherited from class tv.hd3g.transfertfiles.FileAttributesReference
directory, exists, file, lastModified, length, link, path, special -
Constructor Summary
ConstructorsConstructorDescriptionCachedFileAttributes(AbstractFile abstractFile) Not optimized approach directly derived from AbstractFile.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). -
Method Summary
Modifier and TypeMethodDescriptionbooleanTake abstractFile.hashCode();inthashCode()Take abstractFile.hashCode();static CachedFileAttributesnotExists(AbstractFile abstractFile) Methods inherited from class tv.hd3g.transfertfiles.FileAttributesReference
exists, getName, getParentPath, getPath, isDirectory, isFile, isHidden, isLink, isSpecial, lastModified, length, toString
-
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
Not optimized approach directly derived from AbstractFile.
-
-
Method Details
-
notExists
-
getAbstractFile
- Returns:
- the original data source. Warning: linked AbstractFileSystem may be disconnected.
-
hashCode
public int hashCode()Take abstractFile.hashCode();- Overrides:
hashCodein classFileAttributesReference
-
equals
Take abstractFile.hashCode();- Overrides:
equalsin classFileAttributesReference
-