|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.storage.dfs.DfsRefDatabase.RefCache
public static class DfsRefDatabase.RefCache
Collection of references managed by this database.
Constructor Summary | |
---|---|
DfsRefDatabase.RefCache(RefList<Ref> ids,
RefList<Ref> sym)
Initialize a new reference cache. |
Method Summary | |
---|---|
Ref |
get(String name)
Find a reference by name. |
DfsRefDatabase.RefCache |
put(Ref ref)
Obtain a modified copy of the cache with a ref stored. |
DfsRefDatabase.RefCache |
remove(String refName)
Obtain a modified copy of the cache with the ref removed. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DfsRefDatabase.RefCache(RefList<Ref> ids, RefList<Ref> sym)
The two reference lists supplied must be sorted in correct order (string compare order) by name.
ids
- references that carry an ObjectId, and all of sym
.sym
- references that are symbolic references to others.Method Detail |
---|
public int size()
public Ref get(String name)
name
- full name of the reference.
public DfsRefDatabase.RefCache put(Ref ref)
This cache instance is not modified by this method.
ref
- reference to add or replace.
public DfsRefDatabase.RefCache remove(String refName)
This cache instance is not modified by this method.
refName
- reference to remove, if it exists.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |