Interface Download


  • @Immutable
    @TypeAdapters
    public interface Download
    A single file download in the version manifest.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String path()
      Path identifying the standard destination for this download.
      java.lang.String sha1()
      Get the SHA-1 hash expected for the download.
      int size()
      Expected size of the download, in bytes.
      java.net.URL url()
      The URL to download from.
    • Method Detail

      • path

        @Nullable java.lang.String path()
        Path identifying the standard destination for this download.

        Not always included.

        Returns:
        the download path
      • sha1

        java.lang.String sha1()
        Get the SHA-1 hash expected for the download.
        Returns:
        the hash
      • size

        int size()
        Expected size of the download, in bytes.
        Returns:
        the file size
      • url

        java.net.URL url()
        The URL to download from.
        Returns:
        file download URL