gov.nasa.pds.harvest.file
Class FileSize
java.lang.Object
gov.nasa.pds.harvest.file.FileSize
public class FileSize
- extends Object
Class representation of being able to specify units along with a file size.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSize
public FileSize(long size,
String units)
- Constructor.
- Parameters:
size
- The file size.units
- A units designation.
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.
Copyright © 2010–2015 Planetary Data System. All rights reserved.