Class CachedPackUriProvider.PackInfo
java.lang.Object
org.eclipse.jgit.internal.storage.pack.CachedPackUriProvider.PackInfo
- Enclosing interface:
CachedPackUriProvider
Information about a packfile.
- Since:
- 5.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
hash
-
uri
-
size
private final long size
-
-
Constructor Details
-
PackInfo
Constructs an object containing information about a packfile.- Parameters:
hash
- the hash of the packfile as a hexadecimal stringuri
- the URI corresponding to the packfilesize
- the size of the packfile in bytes
-
-
Method Details
-
getHash
- Returns:
- the hash of the packfile as a hexadecimal string
-
getUri
- Returns:
- the URI corresponding to the packfile
-
getSize
public long getSize()- Returns:
- the size of the packfile in bytes (-1 if unknown)
-