Class Downloadable

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

public class Downloadable extends Object
This class represents a classic downloadable file such as a library, the client/server or natives.
  • Constructor Details

    • Downloadable

      public Downloadable(String url, long size, String sha1, String name)
      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

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

      public String getSha1()
      Get the sha1 of the file.
      Returns:
      the sha1 of the file.
    • getName

      public String getName()
      Get the relative path of the file.
      Returns:
      the relative path of the file.
    • equals

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