Class FileDiffCacheKey
- java.lang.Object
- 
- com.google.gerrit.server.patch.filediff.FileDiffCacheKey
 
- 
 public abstract class FileDiffCacheKey extends Object Cache key for theFileDiffCache.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFileDiffCacheKey.Builderstatic classFileDiffCacheKey.Serializer
 - 
Constructor SummaryConstructors Constructor Description FileDiffCacheKey()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FileDiffCacheKey.Builderbuilder()abstract GitFileDiffCacheImpl.DiffAlgorithmdiffAlgorithm()The diff algorithm that should be used in the computation.abstract org.eclipse.jgit.lib.ObjectIdnewCommit()The 20 bytes SHA-1 commit ID of the new commit used in the diff.abstract StringnewFilePath()File path identified by its name.abstract org.eclipse.jgit.lib.ObjectIdoldCommit()The 20 bytes SHA-1 commit ID of the old commit used in the diff.abstract Project.NameKeyproject()A specific git project / repository.abstract intrenameScore()Percentage score used to identify a file as a "rename".intweight()Number of bytes that this entity occupies.abstract DiffPreferencesInfo.Whitespacewhitespace()
 
- 
- 
- 
Method Detail- 
projectpublic abstract Project.NameKey project() A 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.
 - 
newCommitpublic abstract org.eclipse.jgit.lib.ObjectId newCommit() The 20 bytes SHA-1 commit ID of the new commit used in the diff.
 - 
newFilePathpublic abstract String newFilePath() File 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.
 - 
diffAlgorithmpublic abstract GitFileDiffCacheImpl.DiffAlgorithm diffAlgorithm() The diff algorithm that should be used in the computation.
 - 
whitespacepublic abstract DiffPreferencesInfo.Whitespace whitespace() 
 - 
weightpublic int weight() Number of bytes that this entity occupies.
 - 
builderpublic static FileDiffCacheKey.Builder builder() 
 
- 
 
-