public class Configuration
extends java.util.LinkedHashMap<java.lang.String,java.lang.Object>
Constructor and Description |
---|
Configuration(java.lang.String sourceSet,
java.lang.String fileName,
java.lang.String templateKey)
A configuration rooted at path, with the given map of configurations
|
Modifier and Type | Method and Description |
---|---|
Configuration |
addNested(java.util.Map<java.lang.String,java.lang.Object> values)
Add nested values for the given path.
|
Configuration |
addNested(java.lang.String path,
java.lang.Object value)
Add a nested value for the given path.
|
boolean |
containsKey(java.lang.Object key) |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) |
java.lang.String |
getFileName() |
java.lang.String |
getFullPath(java.lang.String extension) |
java.lang.String |
getPath() |
java.lang.String |
getTemplateKey() |
int |
hashCode() |
clear, containsValue, entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public Configuration(@NonNull java.lang.String sourceSet, @NonNull java.lang.String fileName, @NonNull java.lang.String templateKey)
sourceSet
- where the configuration is rooted, e.g. main, testfileName
- FilenametemplateKey
- Template Keypublic boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
containsKey
in class java.util.HashMap<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
get
in class java.util.LinkedHashMap<java.lang.String,java.lang.Object>
public Configuration addNested(java.lang.String path, java.lang.Object value)
path
- The pathvalue
- The valuepublic Configuration addNested(java.util.Map<java.lang.String,java.lang.Object> values)
values
- A map of path to value entries@NonNull public java.lang.String getPath()
@NonNull public java.lang.String getFileName()
@NonNull public java.lang.String getFullPath(java.lang.String extension)
@NonNull public java.lang.String getTemplateKey()
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map<java.lang.String,java.lang.Object>
equals
in class java.util.AbstractMap<java.lang.String,java.lang.Object>
public int hashCode()
hashCode
in interface java.util.Map<java.lang.String,java.lang.Object>
hashCode
in class java.util.AbstractMap<java.lang.String,java.lang.Object>