Package cc.carm.lib.configuration.yaml
Class YAMLSectionWrapper
- java.lang.Object
-
- cc.carm.lib.configuration.yaml.YAMLSectionWrapper
-
- All Implemented Interfaces:
ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
public class YAMLSectionWrapper extends java.lang.Object implements ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description booleancontains(@NotNull java.lang.String path)@Nullable java.lang.Objectget(@NotNull java.lang.String path)default booleangetBoolean(@NotNull java.lang.String path)default @Nullable java.lang.BooleangetBoolean(@NotNull java.lang.String path, @Nullable java.lang.Boolean def)default @Nullable java.lang.BytegetByte(@NotNull java.lang.String path)default @Nullable java.lang.BytegetByte(@NotNull java.lang.String path, @Nullable java.lang.Byte def)default @Unmodifiable @NotNull java.util.List<java.lang.Byte>getByteList(@NotNull java.lang.String path)default @Nullable java.lang.CharactergetChar(@NotNull java.lang.String path)default @Nullable java.lang.CharactergetChar(@NotNull java.lang.String path, @Nullable java.lang.Character def)default @Unmodifiable @NotNull java.util.List<java.lang.Character>getCharList(@NotNull java.lang.String path)@Nullable YAMLSectionWrappergetConfigurationSection(@NotNull java.lang.String path)default @Nullable java.lang.DoublegetDouble(@NotNull java.lang.String path)default @Nullable java.lang.DoublegetDouble(@NotNull java.lang.String path, @Nullable java.lang.Double def)default @Unmodifiable @NotNull java.util.List<java.lang.Double>getDoubleList(@NotNull java.lang.String path)default @Nullable java.lang.FloatgetFloat(@NotNull java.lang.String path)default @Nullable java.lang.FloatgetFloat(@NotNull java.lang.String path, @Nullable java.lang.Float def)default @Unmodifiable @NotNull java.util.List<java.lang.Float>getFloatList(@NotNull java.lang.String path)default @Nullable java.lang.IntegergetInt(@NotNull java.lang.String path)default @Nullable java.lang.IntegergetInt(@NotNull java.lang.String path, @Nullable java.lang.Integer def)default @Unmodifiable @NotNull java.util.List<java.lang.Integer>getIntegerList(@NotNull java.lang.String path)@NotNull java.util.Set<java.lang.String>getKeys(boolean deep)@Nullable java.util.List<?>getList(@NotNull java.lang.String path)default @Nullable java.lang.LonggetLong(@NotNull java.lang.String path)default @Nullable java.lang.LonggetLong(@NotNull java.lang.String path, @Nullable java.lang.Long def)default @Unmodifiable @NotNull java.util.List<java.lang.Long>getLongList(@NotNull java.lang.String path)<T extends org.bspfsystems.yamlconfiguration.serialization.ConfigurationSerializable>
TgetSerializable(@NotNull java.lang.String path, @NotNull java.lang.Class<T> clazz)<T extends org.bspfsystems.yamlconfiguration.serialization.ConfigurationSerializable>
TgetSerializable(@NotNull java.lang.String path, @NotNull java.lang.Class<T> clazz, T defaultValue)default @Nullable java.lang.ShortgetShort(@NotNull java.lang.String path)default @Nullable java.lang.ShortgetShort(@NotNull java.lang.String path, @Nullable java.lang.Short def)@NotNull org.bspfsystems.yamlconfiguration.configuration.ConfigurationSectiongetSource()default @Nullable java.lang.StringgetString(@NotNull java.lang.String path)default @Nullable java.lang.StringgetString(@NotNull java.lang.String path, @Nullable java.lang.String def)default @Unmodifiable @NotNull java.util.List<java.lang.String>getStringList(@NotNull java.lang.String path)@NotNull java.util.Map<java.lang.String,java.lang.Object>getValues(boolean deep)default booleanisBoolean(@NotNull java.lang.String path)default @Nullable java.lang.BooleanisByte(@NotNull java.lang.String path)default booleanisChar(@NotNull java.lang.String path)booleanisConfigurationSection(@NotNull java.lang.String path)default booleanisDouble(@NotNull java.lang.String path)default booleanisFloat(@NotNull java.lang.String path)default booleanisInt(@NotNull java.lang.String path)booleanisList(@NotNull java.lang.String path)default booleanisLong(@NotNull java.lang.String path)default booleanisShort(@NotNull java.lang.String path)default booleanisString(@NotNull java.lang.String path)static @Nullable YAMLSectionWrapperof(@Nullable org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection section)voidset(@NotNull java.lang.String path, @Nullable java.lang.Object value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cc.carm.lib.configuration.core.source.ConfigurationWrapper
get, get, get, get, getWrapper, isType
-
-
-
-
Method Detail
-
of
@Contract("!null->!null") @Nullable public static @Nullable YAMLSectionWrapper of(@Nullable @Nullable org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection section)
-
getSource
@NotNull public @NotNull org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection getSource()
- Specified by:
getSourcein interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
getKeys
@NotNull public @NotNull java.util.Set<java.lang.String> getKeys(boolean deep)
- Specified by:
getKeysin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
getValues
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> getValues(boolean deep)
- Specified by:
getValuesin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
set
public void set(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Object value)- Specified by:
setin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
contains
public boolean contains(@NotNull @NotNull java.lang.String path)- Specified by:
containsin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
get
@Nullable public @Nullable java.lang.Object get(@NotNull @NotNull java.lang.String path)- Specified by:
getin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
isList
public boolean isList(@NotNull @NotNull java.lang.String path)- Specified by:
isListin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
getList
@Nullable public @Nullable java.util.List<?> getList(@NotNull @NotNull java.lang.String path)- Specified by:
getListin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
isConfigurationSection
public boolean isConfigurationSection(@NotNull @NotNull java.lang.String path)- Specified by:
isConfigurationSectionin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
getConfigurationSection
@Nullable public @Nullable YAMLSectionWrapper getConfigurationSection(@NotNull @NotNull java.lang.String path)
- Specified by:
getConfigurationSectionin interfaceConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
-
getSerializable
@Nullable public <T extends org.bspfsystems.yamlconfiguration.serialization.ConfigurationSerializable> T getSerializable(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.lang.Class<T> clazz)
-
getSerializable
@Nullable @Contract("_, _, !null -> !null") public <T extends org.bspfsystems.yamlconfiguration.serialization.ConfigurationSerializable> T getSerializable(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.lang.Class<T> clazz, @Nullable T defaultValue)
-
isBoolean
public default boolean isBoolean(@NotNull @NotNull java.lang.String path)
-
getBoolean
public default boolean getBoolean(@NotNull @NotNull java.lang.String path)
-
getBoolean
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Boolean getBoolean(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Boolean def)
-
isByte
@Nullable public default @Nullable java.lang.Boolean isByte(@NotNull @NotNull java.lang.String path)
-
getByte
@Nullable public default @Nullable java.lang.Byte getByte(@NotNull @NotNull java.lang.String path)
-
getByte
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Byte getByte(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Byte def)
-
isShort
public default boolean isShort(@NotNull @NotNull java.lang.String path)
-
getShort
@Nullable public default @Nullable java.lang.Short getShort(@NotNull @NotNull java.lang.String path)
-
getShort
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Short getShort(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Short def)
-
isInt
public default boolean isInt(@NotNull @NotNull java.lang.String path)
-
getInt
@Nullable public default @Nullable java.lang.Integer getInt(@NotNull @NotNull java.lang.String path)
-
getInt
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Integer getInt(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Integer def)
-
isLong
public default boolean isLong(@NotNull @NotNull java.lang.String path)
-
getLong
@Nullable public default @Nullable java.lang.Long getLong(@NotNull @NotNull java.lang.String path)
-
getLong
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Long getLong(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Long def)
-
isFloat
public default boolean isFloat(@NotNull @NotNull java.lang.String path)
-
getFloat
@Nullable public default @Nullable java.lang.Float getFloat(@NotNull @NotNull java.lang.String path)
-
getFloat
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Float getFloat(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Float def)
-
isDouble
public default boolean isDouble(@NotNull @NotNull java.lang.String path)
-
getDouble
@Nullable public default @Nullable java.lang.Double getDouble(@NotNull @NotNull java.lang.String path)
-
getDouble
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Double getDouble(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Double def)
-
isChar
public default boolean isChar(@NotNull @NotNull java.lang.String path)
-
getChar
@Nullable public default @Nullable java.lang.Character getChar(@NotNull @NotNull java.lang.String path)
-
getChar
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.Character getChar(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.Character def)
-
isString
public default boolean isString(@NotNull @NotNull java.lang.String path)
-
getString
@Nullable public default @Nullable java.lang.String getString(@NotNull @NotNull java.lang.String path)
-
getString
@Contract("_, !null -> !null") @Nullable public default @Nullable java.lang.String getString(@NotNull @NotNull java.lang.String path, @Nullable @Nullable java.lang.String def)
-
getStringList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.String> getStringList(@NotNull @NotNull java.lang.String path)
-
getIntegerList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Integer> getIntegerList(@NotNull @NotNull java.lang.String path)
-
getLongList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Long> getLongList(@NotNull @NotNull java.lang.String path)
-
getDoubleList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Double> getDoubleList(@NotNull @NotNull java.lang.String path)
-
getFloatList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Float> getFloatList(@NotNull @NotNull java.lang.String path)
-
getByteList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Byte> getByteList(@NotNull @NotNull java.lang.String path)
-
getCharList
@NotNull public default @Unmodifiable @NotNull java.util.List<java.lang.Character> getCharList(@NotNull @NotNull java.lang.String path)
-
-