Package org.eclipse.jgit.lib
Class FileModeCache.CacheItem
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).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an immediate child of thisFileModeCache.CacheItem
by name.getMode()
Retrieves the cachedFileMode
.Inserts a new cachedFileMode
as an immediate child of thisFileModeCache.CacheItem
.Removes the immediate child with the given name.(package private) void
-
Field Details
-
mode
-
children
-
-
Constructor Details
-
CacheItem
Creates a newFileModeCache.CacheItem
.- Parameters:
mode
-FileMode
to cache
-
-
Method Details
-
getMode
Retrieves the cachedFileMode
.- Returns:
- the
FileMode
-
child
Retrieves an immediate child of thisFileModeCache.CacheItem
by name.- Parameters:
childName
- name of the child to get- Returns:
- the
FileModeCache.CacheItem
, ornull
if no such child is known
-
insert
Inserts a new cachedFileMode
as 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
-FileMode
to cache- Returns:
- the new
FileModeCache.CacheItem
created 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
-
setMode
-