Class AssetDownloadable
java.lang.Object
fr.flowarg.flowupdater.download.json.AssetDownloadable
This class represents an asset.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AssetDownloadable
Construct a new asset object.- Parameters:
hash- the sha1 of the asset.size- the size of the asset.
-
-
Method Details
-
getHash
Get the hash of the asset.- Returns:
- the sha1 of the asset.
-
getSize
public long getSize()Get the length of the asset.- Returns:
- the size of the asset.
-
getUrl
Get the remote url of the asset.- Returns:
- the url of the asset.
-
getFile
Get the file path of the asset.- Returns:
- the relative local path of this asset.
-
equals
-
hashCode
public int hashCode()
-