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
-
FileSize
public FileSize(long size, String units)
Constructor.- Parameters:
size
- The file size.units
- A units designation.
-
-
Method Detail
-
getSize
public long getSize()
- Returns:
- the size.
-
getUnits
public String getUnits()
- Returns:
- the units.
-
hasUnits
public boolean hasUnits()
- Returns:
- Determines whether a units value was defined.
-
-