public final class SchemaCachePref extends CachePreference
app, defaultCapacity, defaultState, hasCapacity, hasState, key, label, maxCapacity, minCapacity
Constructor and Description |
---|
SchemaCachePref(App app) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Preferences prefs)
Apply to the cache the settings found in specified Preferences object.
|
boolean |
clear()
Clear the cache.
|
cannotClearMessage, clearedMessage, getCapacity, getState, setCapacity, setState
public SchemaCachePref(App app)
public boolean clear()
CachePreference
clear
in class CachePreference
true
if the cache has been made empty;
false
otherwise (for example, when an error occurs).
Must return true
if the cache is currently disabled or
empty.
public void apply(Preferences prefs)
CachePreference
May be invoked several times with exactly the same settings. In this case, the method is expected to do nothing at all.
Default implementation does nothing at all.
apply
in class CachePreference