Package com.google.gerrit.server.config
Class CachedPreferences
- java.lang.Object
-
- com.google.gerrit.server.config.CachedPreferences
-
-
Field Summary
Fields Modifier and Type Field Description static CachedPreferences
EMPTY
-
Constructor Summary
Constructors Constructor Description CachedPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Config
asConfig()
abstract String
config()
static DiffPreferencesInfo
diff(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
static EditPreferencesInfo
edit(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
static CachedPreferences
fromConfig(org.eclipse.jgit.lib.Config cfg)
Returns a cache-able representation of the config.static CachedPreferences
fromString(String cfg)
Returns a cache-able representation of the config.static GeneralPreferencesInfo
general(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
-
-
-
Field Detail
-
EMPTY
public static CachedPreferences EMPTY
-
-
Method Detail
-
config
public abstract String config()
-
fromConfig
public static CachedPreferences fromConfig(org.eclipse.jgit.lib.Config cfg)
Returns a cache-able representation of the config.
-
fromString
public static CachedPreferences fromString(String cfg)
Returns a cache-able representation of the config. To be used only when constructing aCachedPreferences
from a serialized, cached value.
-
general
public static GeneralPreferencesInfo general(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
-
edit
public static EditPreferencesInfo edit(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
-
diff
public static DiffPreferencesInfo diff(Optional<CachedPreferences> defaultPreferences, CachedPreferences userPreferences)
-
asConfig
public org.eclipse.jgit.lib.Config asConfig()
-
-