Class CachedPackUriProvider.PackInfo

  • Enclosing interface:
    CachedPackUriProvider

    public static class CachedPackUriProvider.PackInfo
    extends Object
    Information about a packfile.
    Since:
    5.5
    • Constructor Detail

      • PackInfo

        public PackInfo​(String hash,
                        String uri,
                        long size)
        Constructs an object containing information about a packfile.
        Parameters:
        hash - the hash of the packfile as a hexadecimal string
        uri - the URI corresponding to the packfile
        size - the size of the packfile in bytes
    • Method Detail

      • getHash

        public String getHash()
        Returns:
        the hash of the packfile as a hexadecimal string
      • getUri

        public String getUri()
        Returns:
        the URI corresponding to the packfile
      • getSize

        public long getSize()
        Returns:
        the size of the packfile in bytes (-1 if unknown)