Package de.dlr.proseo.storagemgr.cache
Class FileInfo
java.lang.Object
de.dlr.proseo.storagemgr.cache.FileInfo
File Info (last Accessed and file size) for File Cache with sorting and
search
- Author:
- Denys Chaykovskiy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the last accessedlonggetSize()Gets the file size in bytesvoidsetAccessed(Instant accessed) Sets the last accessedvoidsetSize(long size) Sets the file size in bytestoString()Shows string representation -> accessed + size
-
Constructor Details
-
FileInfo
File Info Constructor with accessed and size values- Parameters:
accessed- Last accessed time stampsize- the size of file
-
-
Method Details
-
getAccessed
Gets the last accessed- Returns:
- accessed last accessed time stamp
-
setAccessed
Sets the last accessed- Parameters:
accessed- the accessed to set
-
getSize
public long getSize()Gets the file size in bytes- Returns:
- the size of the file
-
setSize
public void setSize(long size) Sets the file size in bytes- Parameters:
size- the size to set
-
toString
Shows string representation -> accessed + size
-