Package com.google.gerrit.entities
Class ImmutableConfig
- java.lang.Object
-
- com.google.gerrit.entities.ImmutableConfig
-
public class ImmutableConfig extends Object
Immutable parsed representation of aConfig
that can be cached. Supports only a limited set of operations.
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableConfig
EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<String>
getNames(String section)
SeeConfig.getNames(String)
Set<String>
getNames(String section, String subsection)
SeeConfig.getNames(String, String)
Set<String>
getSections()
SeeConfig.getSections()
String[]
getStringList(String section, String subsection, String name)
SeeConfig.getStringList(String, String, String)
Set<String>
getSubsections(String section)
SeeConfig.getSubsections(String)
int
hashCode()
org.eclipse.jgit.lib.Config
mutableCopy()
Returns a mutable copy of this config.static ImmutableConfig
parse(String stringCfg)
-
-
-
Field Detail
-
EMPTY
public static final ImmutableConfig EMPTY
-
-
Method Detail
-
parse
public static ImmutableConfig parse(String stringCfg) throws org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
org.eclipse.jgit.errors.ConfigInvalidException
-
mutableCopy
public org.eclipse.jgit.lib.Config mutableCopy()
Returns a mutable copy of this config.
-
getNames
public Set<String> getNames(String section, String subsection)
SeeConfig.getNames(String, String)
-
getStringList
public String[] getStringList(String section, String subsection, String name)
SeeConfig.getStringList(String, String, String)
-
-