Package gov.nasa.pds.harvest.search.file
Class FileSize
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.file.FileSize
 
- 
 public class FileSize extends Object Class representation of being able to specify units along with a file size.- Author:
- mcayanan
 
- 
- 
Constructor Detail- 
FileSizepublic FileSize(long size, String units)Constructor.- Parameters:
- size- The file size.
- units- A units designation.
 
 
- 
 - 
Method Detail- 
getSizepublic long getSize() - Returns:
- the size.
 
 - 
getUnitspublic String getUnits() - Returns:
- the units.
 
 - 
hasUnitspublic boolean hasUnits() - Returns:
- Determines whether a units value was defined.
 
 
- 
 
-