Serializable
, Map<String,Profile.Section>
, CommentedMap<String,Profile.Section>
, MultiMap<String,Profile.Section>
, Profile
BasicRegistry
, Ini
public class BasicProfile extends CommonMultiMap<String,Profile.Section> implements Profile
Map.Entry<K extends Object,V extends Object>
Profile.Section
PATH_SEPARATOR
Constructor | Description |
---|---|
BasicProfile() |
|
BasicProfile(boolean treeMode,
boolean propertyFirstUpper) |
Modifier and Type | Method | Description |
---|---|---|
Profile.Section |
add(String name) |
|
void |
add(String section,
String option,
Object value) |
|
<T> T |
as(Class<T> clazz) |
|
<T> T |
as(Class<T> clazz,
String prefix) |
|
String |
fetch(Object sectionName,
Object optionName) |
|
<T> T |
fetch(Object sectionName,
Object optionName,
Class<T> clazz) |
|
String |
get(Object sectionName,
Object optionName) |
|
<T> T |
get(Object sectionName,
Object optionName,
Class<T> clazz) |
|
String |
getComment() |
|
String |
put(String sectionName,
String optionName,
Object value) |
|
boolean |
remove(Object sectionName,
Object optionName) |
|
Profile.Section |
remove(Profile.Section section) |
|
void |
setComment(String value) |
add, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, values
getComment, putComment, removeComment
clear, getComment, putAll, putComment, remove, remove, removeComment
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
public BasicProfile()
public BasicProfile(boolean treeMode, boolean propertyFirstUpper)
public String getComment()
getComment
in interface Profile
public void setComment(String value)
setComment
in interface Profile
public Profile.Section add(String name)
public void add(String section, String option, Object value)
public String fetch(Object sectionName, Object optionName)
public <T> T fetch(Object sectionName, Object optionName, Class<T> clazz)
public String get(Object sectionName, Object optionName)
public <T> T get(Object sectionName, Object optionName, Class<T> clazz)
public String put(String sectionName, String optionName, Object value)
public Profile.Section remove(Profile.Section section)
public boolean remove(Object sectionName, Object optionName)
remove
in interface Map<String,Profile.Section>
remove
in interface Profile