public class AssetDownloadable
extends java.lang.Object
| Constructor and Description |
|---|
AssetDownloadable(java.lang.String hash,
long size)
Construct a new asset object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFile()
Get the file path of the asset.
|
java.lang.String |
getHash()
Get the hash of the asset.
|
long |
getSize()
Get the length of the asset.
|
java.lang.String |
getUrl()
Get the remote url of the asset.
|
int |
hashCode() |
public AssetDownloadable(java.lang.String hash,
long size)
hash - the sha1 of the asset.size - the size of the asset.public java.lang.String getHash()
public long getSize()
public java.lang.String getUrl()
public java.lang.String getFile()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object