java.lang.Object
org.eclipse.jgit.lib.FileModeCache.CacheItem
- Enclosing class:
- FileModeCache
An item from a
FileModeCache, recording information about a git
path (known from context).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an immediate child of thisFileModeCache.CacheItemby name.getMode()Retrieves the cachedFileMode.Inserts a new cachedFileModeas an immediate child of thisFileModeCache.CacheItem.Removes the immediate child with the given name.
-
Constructor Details
-
CacheItem
Creates a newFileModeCache.CacheItem.- Parameters:
mode-FileModeto cache
-
-
Method Details
-
getMode
Retrieves the cachedFileMode.- Returns:
- the
FileMode
-
child
Retrieves an immediate child of thisFileModeCache.CacheItemby name.- Parameters:
childName- name of the child to get- Returns:
- the
FileModeCache.CacheItem, ornullif no such child is known
-
insert
Inserts a new cachedFileModeas an immediate child of thisFileModeCache.CacheItem. If there is already a child with the same name, it is overwritten.- Parameters:
childName- name of the child to createchildMode-FileModeto cache- Returns:
- the new
FileModeCache.CacheItemcreated for the child
-
remove
Removes the immediate child with the given name.- Parameters:
childName- name of the child to remove- Returns:
- the previously cached
FileModeCache.CacheItem, if any
-