Class CachedPackUriProvider.PackInfo

  • Enclosing interface:
    CachedPackUriProvider

    public static class CachedPackUriProvider.PackInfo
    extends java.lang.Object
    Information about a packfile.
    Since:
    5.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String hash  
      private long size  
      private java.lang.String uri  
    • Constructor Summary

      Constructors 
      Constructor Description
      PackInfo​(java.lang.String hash, java.lang.String uri, long size)
      Constructs an object containing information about a packfile.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHash()  
      long getSize()  
      java.lang.String getUri()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hash

        private final java.lang.String hash
      • uri

        private final java.lang.String uri
      • size

        private final long size
    • Constructor Detail

      • PackInfo

        public PackInfo​(java.lang.String hash,
                        java.lang.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 java.lang.String getHash()
        Returns:
        the hash of the packfile as a hexadecimal string
      • getUri

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

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