Class FileDiffCacheKey
java.lang.Object
com.google.gerrit.server.patch.filediff.FileDiffCacheKey
Cache key for the 
FileDiffCache.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enum
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic FileDiffCacheKey.Builderbuilder()abstract GitFileDiffCacheImpl.DiffAlgorithmThe diff algorithm that should be used in the computation.abstract org.eclipse.jgit.lib.ObjectIdThe 20 bytes SHA-1 commit ID of the new commit used in the diff.abstract StringFile path identified by its name.abstract org.eclipse.jgit.lib.ObjectIdThe 20 bytes SHA-1 commit ID of the old commit used in the diff.abstract Project.NameKeyproject()A specific git project / repository.abstract intPercentage score used to identify a file as a "rename".abstract FileDiffCacheKey.Builderabstract booleanEmploy a timeout on the git computation while formatting the file header.intweight()Number of bytes that this entity occupies.abstract DiffPreferencesInfo.Whitespace
- 
Constructor Details- 
FileDiffCacheKeypublic FileDiffCacheKey()
 
- 
- 
Method Details- 
projectA specific git project / repository.
- 
oldCommitpublic abstract org.eclipse.jgit.lib.ObjectId oldCommit()The 20 bytes SHA-1 commit ID of the old commit used in the diff. If set toObjectId.zeroId(), an empty tree is used for the diff.
- 
newCommitpublic abstract org.eclipse.jgit.lib.ObjectId newCommit()The 20 bytes SHA-1 commit ID of the new commit used in the diff.
- 
newFilePathFile path identified by its name.
- 
renameScorepublic abstract int renameScore()Percentage score used to identify a file as a "rename". A special value of -1 means that the computation will ignore renames and rename detection will be disabled.
- 
diffAlgorithmThe diff algorithm that should be used in the computation.
- 
whitespace
- 
useTimeoutpublic abstract boolean useTimeout()Employ a timeout on the git computation while formatting the file header.
- 
weightpublic int weight()Number of bytes that this entity occupies.
- 
builder
- 
toBuilder
 
-