Package de.dlr.proseo.storagemgr.cache
Klasse FileInfo
java.lang.Object
de.dlr.proseo.storagemgr.cache.FileInfo
File Info (last Accessed and file size) for File Cache with sorting and
search
- Autor:
- Denys Chaykovskiy
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the last accessedlong
getSize()
Gets the file size in bytesvoid
setAccessed
(Instant accessed) Sets the last accessedvoid
setSize
(long size) Sets the file size in bytestoString()
Shows string representation -> accessed + size
-
Konstruktordetails
-
FileInfo
File Info Constructor with accessed and size values- Parameter:
accessed
- Last accessed time stampsize
- the size of file
-
-
Methodendetails
-
getAccessed
Gets the last accessed- Gibt zurück:
- accessed last accessed time stamp
-
setAccessed
Sets the last accessed- Parameter:
accessed
- the accessed to set
-
getSize
public long getSize()Gets the file size in bytes- Gibt zurück:
- the size of the file
-
setSize
public void setSize(long size) Sets the file size in bytes- Parameter:
size
- the size to set
-
toString
Shows string representation -> accessed + size
-