Package com.google.gerrit.server.git
Class RepoRefCache
- java.lang.Object
- 
- com.google.gerrit.server.git.RepoRefCache
 
- 
- 
Constructor SummaryConstructors Constructor Description RepoRefCache(org.eclipse.jgit.lib.Repository repo)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.eclipse.jgit.lib.ObjectId>get(String refName)Get the possibly-cached value of a ref.Map<String,Optional<org.eclipse.jgit.lib.ObjectId>>getCachedRefs()
 
- 
- 
- 
Method Detail- 
getpublic Optional<org.eclipse.jgit.lib.ObjectId> get(String refName) throws IOException Description copied from interface:RefCacheGet the possibly-cached value of a ref.- Specified by:
- getin interface- RefCache
- Parameters:
- refName- name of the ref.
- Returns:
- value of the ref; absent if the ref does not exist in the repo. Never null, and never
     present with a value of ObjectId.zeroId().
- Throws:
- IOException
 
 
- 
 
-