public class MemorySection extends Object implements ConfigurationSection
Modifier | Constructor and Description |
---|---|
protected |
MemorySection() |
protected |
MemorySection(ConfigurationSection parent,
String path)
Creates an empty MemorySection with the specified parent and path.
|
protected MemorySection()
protected MemorySection(ConfigurationSection parent, String path)
parent
- Parent section that contains this own section.path
- Path that you may access this section from via the root Configuration
.IllegalArgumentException
- Thrown is parent or path is null, or if parent contains no root Configuration.public Set<String> getKeys(boolean deep)
getKeys
in interface ConfigurationSection
public Map<String,Object> getValues(boolean deep)
getValues
in interface ConfigurationSection
public boolean contains(String path)
contains
in interface ConfigurationSection
public boolean isSet(String path)
isSet
in interface ConfigurationSection
public String getCurrentPath()
getCurrentPath
in interface ConfigurationSection
public String getName()
getName
in interface ConfigurationSection
public Configuration getRoot()
getRoot
in interface ConfigurationSection
public ConfigurationSection getParent()
getParent
in interface ConfigurationSection
public void addDefault(String path, Object value)
addDefault
in interface ConfigurationSection
public ConfigurationSection getDefaultSection()
getDefaultSection
in interface ConfigurationSection
public void set(String path, Object value)
set
in interface ConfigurationSection
public Object get(String path)
get
in interface ConfigurationSection
public Object get(String path, Object def)
get
in interface ConfigurationSection
public ConfigurationSection createSection(String path)
createSection
in interface ConfigurationSection
public ConfigurationSection createSection(String path, Map<?,?> map)
createSection
in interface ConfigurationSection
public String getString(String path)
getString
in interface ConfigurationSection
public String getString(String path, String def)
getString
in interface ConfigurationSection
public boolean isString(String path)
isString
in interface ConfigurationSection
public int getInt(String path)
getInt
in interface ConfigurationSection
public int getInt(String path, int def)
getInt
in interface ConfigurationSection
public boolean isInt(String path)
isInt
in interface ConfigurationSection
public boolean getBoolean(String path)
getBoolean
in interface ConfigurationSection
public boolean getBoolean(String path, boolean def)
getBoolean
in interface ConfigurationSection
public boolean isBoolean(String path)
isBoolean
in interface ConfigurationSection
public double getDouble(String path)
getDouble
in interface ConfigurationSection
public double getDouble(String path, double def)
getDouble
in interface ConfigurationSection
public boolean isDouble(String path)
isDouble
in interface ConfigurationSection
public long getLong(String path)
getLong
in interface ConfigurationSection
public long getLong(String path, long def)
getLong
in interface ConfigurationSection
public boolean isLong(String path)
isLong
in interface ConfigurationSection
public List<?> getList(String path)
getList
in interface ConfigurationSection
public List<?> getList(String path, List<?> def)
getList
in interface ConfigurationSection
public boolean isList(String path)
isList
in interface ConfigurationSection
public List<String> getStringList(String path)
getStringList
in interface ConfigurationSection
public List<Integer> getIntegerList(String path)
getIntegerList
in interface ConfigurationSection
public List<Boolean> getBooleanList(String path)
getBooleanList
in interface ConfigurationSection
public List<Double> getDoubleList(String path)
getDoubleList
in interface ConfigurationSection
public List<Float> getFloatList(String path)
getFloatList
in interface ConfigurationSection
public List<Long> getLongList(String path)
getLongList
in interface ConfigurationSection
public List<Byte> getByteList(String path)
getByteList
in interface ConfigurationSection
public List<Character> getCharacterList(String path)
getCharacterList
in interface ConfigurationSection
public List<Short> getShortList(String path)
getShortList
in interface ConfigurationSection
public List<Map<?,?>> getMapList(String path)
getMapList
in interface ConfigurationSection
public ConfigurationSection getConfigurationSection(String path)
getConfigurationSection
in interface ConfigurationSection
public boolean isConfigurationSection(String path)
isConfigurationSection
in interface ConfigurationSection
protected boolean isPrimitiveWrapper(Object input)
protected void mapChildrenKeys(Set<String> output, ConfigurationSection section, boolean deep)
protected void mapChildrenValues(Map<String,Object> output, ConfigurationSection section, boolean deep)
public static String createPath(ConfigurationSection section, String key)
public static String createPath(ConfigurationSection section, String key, ConfigurationSection relativeTo)
Copyright © 2019. All rights reserved.