Package org.cdlib.mrt.utility
Class DirectoryStats
java.lang.Object
org.cdlib.mrt.utility.DirectoryStats
Container class, used for tallying Directory file statistics
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(DirectoryStats stats) Add directory tallies from other DirectoryStats to this statscopy()
copy constructorint
get number of fileslong
get accumulated size of filesvoid
setFileCnt
(int fileCnt) set number of filesvoid
setFileSize
(long fileSize) set accumulated size of filesvoid
subtract
(DirectoryStats stats) Subtract other DirectoryStats from this status
-
Field Details
-
fileCnt
public int fileCnt -
fileSize
public long fileSize
-
-
Constructor Details
-
DirectoryStats
public DirectoryStats()
-
-
Method Details
-
getFileCnt
public int getFileCnt()get number of files- Returns:
- number files
-
setFileCnt
public void setFileCnt(int fileCnt) set number of files- Parameters:
fileCnt
- number of files to set
-
getFileSize
public long getFileSize()get accumulated size of files- Returns:
- accumulated size of files
-
setFileSize
public void setFileSize(long fileSize) set accumulated size of files- Parameters:
fileSize
- accumulated size of files
-
copy
copy constructor- Returns:
- copied DirectoryStats
-
add
Add directory tallies from other DirectoryStats to this stats- Parameters:
stats
- stats to add to this
-
subtract
Subtract other DirectoryStats from this status- Parameters:
stats
- stats to subtract from this
-