public interface SectionMap extends Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
contains(String key)
Indicate there is a key-value pair named key
|
SectionMap |
createSection(String key)
Create the section named key
|
default <T> T |
get(String key)
Get the value of the key-value pair
|
SectionMap |
getSection(String key)
Get the section named key
|
Map<String,Object> |
getValues()
Get all the key-value pairs
|
default Set<String> |
keys()
Get all the keys in set
|
default void |
remove(String key)
Remove the key-value pair named key
|
default void |
set(String key,
Object value)
Store the key-value pair
|
default void set(String key, Object value)
key - the key of the key-value pairvalue - the value of the key-value pairdefault <T> T get(String key)
T - the desired typekey - the key of the key-value pairClassCastException - if the desired T type is not equal to its original typedefault boolean contains(String key)
key - the key of the key-value pairdefault void remove(String key)
key - the key of the key-value pairSectionMap createSection(String key)
key - the key of the SectionSectionMap getSection(String key)
key - the key of the SectionUnsupportedOperationException - if there is no section named keyCopyright © 2022. All rights reserved.