Package top.focess.qq.api.util.session
Class Session
- java.lang.Object
-
- top.focess.qq.api.util.session.Session
-
- All Implemented Interfaces:
Serializable,SectionMap
- Direct Known Subclasses:
SessionSection
public class Session extends Object implements SectionMap
This class is used to build better communication between Command and CommandSender. It can save something in the executing process and can be used for future.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SectionMapcreateSection(String key)Create the section named keySectionMapgetSection(String key)Get the section named keyMap<String,Object>getValues()Get all the key-value pairsStringtoString()
-
-
-
Method Detail
-
createSection
public SectionMap createSection(String key)
Description copied from interface:SectionMapCreate the section named key- Specified by:
createSectionin interfaceSectionMap- Parameters:
key- the key of the Section- Returns:
- a section named key
-
getValues
public Map<String,Object> getValues()
Description copied from interface:SectionMapGet all the key-value pairs- Specified by:
getValuesin interfaceSectionMap- Returns:
- all the key-value pairs
-
getSection
public SectionMap getSection(String key)
Description copied from interface:SectionMapGet the section named key- Specified by:
getSectionin interfaceSectionMap- Parameters:
key- the key of the Section- Returns:
- the section named key
-
-