Class AssetDownloadable

java.lang.Object
fr.flowarg.flowupdater.download.json.AssetDownloadable

public class AssetDownloadable extends Object
This class represents an asset.
  • Constructor Details

    • AssetDownloadable

      public AssetDownloadable(String hash, long size)
      Construct a new asset object.
      Parameters:
      hash - the sha1 of the asset.
      size - the size of the asset.
  • Method Details

    • getHash

      public String 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

      public String getUrl()
      Get the remote url of the asset.
      Returns:
      the url of the asset.
    • getFile

      public String getFile()
      Get the file path of the asset.
      Returns:
      the relative local path of this asset.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object