public class CacheStatistics
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cacheSize
Cache size in bytes
|
private long |
downloadSize
Download size in bytes
|
private long |
fileSize
File size in bytes
|
| Constructor and Description |
|---|
CacheStatistics()
Default constructor for CacheStatistics.
|
CacheStatistics(long fileSize,
long cacheSize,
long downloadSize)
Constructs CacheStatistics with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheSize()
Gets the cache size in bytes.
|
long |
getDownloadSize()
Gets the download size in bytes.
|
long |
getFileSize()
Gets the file size in bytes.
|
void |
setCacheSize(long cacheSize)
Sets the cache size in bytes.
|
void |
setDownloadSize(long downloadSize)
Sets the download size in bytes.
|
void |
setFileSize(long fileSize)
Sets the file size in bytes.
|
private long fileSize
private long cacheSize
private long downloadSize
public CacheStatistics()
public CacheStatistics(long fileSize,
long cacheSize,
long downloadSize)
fileSize - File size in bytescacheSize - Cache size in bytesdownloadSize - Download size in bytespublic long getFileSize()
public void setFileSize(long fileSize)
fileSize - File size in bytespublic long getCacheSize()
public void setCacheSize(long cacheSize)
cacheSize - Cache size in bytespublic long getDownloadSize()
public void setDownloadSize(long downloadSize)
downloadSize - Download size in bytes