public class Downloadable
extends java.lang.Object
| Constructor and Description |
|---|
Downloadable(java.lang.String url,
long size,
java.lang.String sha1,
java.lang.String name)
Construct a new Downloadable object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Get the relative path of the file.
|
java.lang.String |
getSha1()
Get the sha1 of the file.
|
long |
getSize()
Get the size of the file.
|
java.lang.String |
getUrl()
Get the url of the file.
|
public Downloadable(java.lang.String url,
long size,
java.lang.String sha1,
java.lang.String name)
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.public java.lang.String getUrl()
public long getSize()
public java.lang.String getSha1()
public java.lang.String getName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Object