Class Downloadable
java.lang.Object
fr.flowarg.flowupdater.download.json.Downloadable
This class represents a classic downloadable file such as a library, the client/server or natives.
-
Constructor Summary
ConstructorsConstructorDescriptionDownloadable(String url, long size, String sha1, String name) Construct a new Downloadable object. -
Method Summary
-
Constructor Details
-
Downloadable
Construct a new Downloadable object.- Parameters:
url- the url where to download the file.size- the size of the file.sha1- the sha1 of the file.name- the name (path) of the file.
-
-
Method Details
-
getUrl
Get the url of the file.- Returns:
- the url of the file.
-
getSize
public long getSize()Get the size of the file.- Returns:
- the size of the file.
-
getSha1
Get the sha1 of the file.- Returns:
- the sha1 of the file.
-
getName
Get the relative path of the file.- Returns:
- the relative path of the file.
-
equals
-