Class GitModifiedFilesCacheImpl
- java.lang.Object
-
- com.google.gerrit.server.patch.gitdiff.GitModifiedFilesCacheImpl
-
- All Implemented Interfaces:
GitModifiedFilesCache
public class GitModifiedFilesCacheImpl extends Object implements GitModifiedFilesCache
Implementation of theGitModifiedFilesCache
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitModifiedFilesCacheImpl.ValueSerializer
-
Constructor Summary
Constructors Constructor Description GitModifiedFilesCacheImpl(com.google.common.cache.LoadingCache<GitModifiedFilesCacheKey,com.google.common.collect.ImmutableList<ModifiedFile>> cache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<ModifiedFile>
get(GitModifiedFilesCacheKey key)
Computes the list of ofModifiedFile
s between the 2 git trees.static com.google.inject.Module
module()
-
-
-
Constructor Detail
-
GitModifiedFilesCacheImpl
@Inject public GitModifiedFilesCacheImpl(com.google.common.cache.LoadingCache<GitModifiedFilesCacheKey,com.google.common.collect.ImmutableList<ModifiedFile>> cache)
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
get
public com.google.common.collect.ImmutableList<ModifiedFile> get(GitModifiedFilesCacheKey key) throws DiffNotAvailableException
Description copied from interface:GitModifiedFilesCache
Computes the list of ofModifiedFile
s between the 2 git trees.- Specified by:
get
in interfaceGitModifiedFilesCache
- Parameters:
key
- used to identify two git trees and contains other attributes to control the diff calculation.- Returns:
- the list of
ModifiedFile
s between the 2 git trees identified by the key. - Throws:
DiffNotAvailableException
- trees cannot be read or file contents cannot be read.
-
-