public static class FileModeCache.CacheItem extends Object
FileModeCache
, recording information about a git
path (known from context).Constructor and Description |
---|
CacheItem(FileMode mode)
Creates a new
FileModeCache.CacheItem . |
Modifier and Type | Method and Description |
---|---|
FileModeCache.CacheItem |
child(String childName)
Retrieves an immediate child of this
FileModeCache.CacheItem by name. |
FileMode |
getMode()
Retrieves the cached
FileMode . |
FileModeCache.CacheItem |
insert(String childName,
FileMode childMode)
Inserts a new cached
FileMode as an immediate child of this
FileModeCache.CacheItem . |
FileModeCache.CacheItem |
remove(String childName)
Removes the immediate child with the given name.
|
public CacheItem(@NonNull FileMode mode)
FileModeCache.CacheItem
.mode
- FileMode
to cachepublic FileModeCache.CacheItem child(String childName)
FileModeCache.CacheItem
by name.childName
- name of the child to getFileModeCache.CacheItem
, or null
if no such child is
knownpublic FileModeCache.CacheItem insert(String childName, @NonNull FileMode childMode)
FileMode
as an immediate child of this
FileModeCache.CacheItem
. If there is already a child with the same name, it
is overwritten.childName
- name of the child to createchildMode
- FileMode
to cacheFileModeCache.CacheItem
created for the childpublic FileModeCache.CacheItem remove(String childName)
childName
- name of the child to removeFileModeCache.CacheItem
, if anyCopyright © 2023 Eclipse JGit Project. All rights reserved.