Class CachedPackUriProvider.PackInfo

java.lang.Object
org.eclipse.jgit.internal.storage.pack.CachedPackUriProvider.PackInfo
Enclosing interface:
CachedPackUriProvider

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

    • hash

      private final String hash
    • uri

      private final String uri
    • size

      private final long size
  • Constructor Details

    • 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 Details

    • 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)