public class FileStateCache
extends java.lang.Object
| Constructor and Description |
|---|
FileStateCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the entire cache.
|
static FileStateCache |
getCache(Nd nd)
Returns the cache for the given
Nd instance. |
java.lang.Boolean |
isUpToDate(java.lang.String location)
Returns true if the file at the given path is in sync with the index.
|
void |
put(java.lang.String location,
boolean result)
Inserts a new entry into the cache.
|
void |
remove(java.lang.String location)
Removes a single entry from the cache.
|
public java.lang.Boolean isUpToDate(java.lang.String location)
location - an absolute path on the filesystempublic static FileStateCache getCache(Nd nd)
Nd instance.Nd. Creates one if it doesn't exist yet.public void put(java.lang.String location,
boolean result)
location - absolute filesystem path to the fileresult - true if the file is definitely in sync with the index, false if there is any possibility of it
being out of sync.public void clear()
public void remove(java.lang.String location)
location - absolute filesystem path to the file.