Modifier and Type | Class and Description |
---|---|
static class |
RawConfig.Builder
A builder for
RawConfig s. |
Constructor and Description |
---|
RawConfig() |
Modifier and Type | Method and Description |
---|---|
static RawConfig.Builder |
builder() |
com.google.common.collect.ImmutableMap<String,String> |
getSection(String sectionName)
Retrieve a section by name.
|
Optional<String> |
getValue(String sectionName,
String key)
Retrieve a value from a named section.
|
abstract com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> |
getValues() |
static RawConfig |
of()
Returns an empty config.
|
static RawConfig |
of(Map<String,? extends com.google.common.collect.ImmutableMap<String,String>> values) |
public abstract com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> getValues()
public com.google.common.collect.ImmutableMap<String,String> getSection(String sectionName)
public Optional<String> getValue(String sectionName, String key)
public static RawConfig of()
public static RawConfig of(Map<String,? extends com.google.common.collect.ImmutableMap<String,String>> values)
public static RawConfig.Builder builder()