Class 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
      boolean contains​(@NotNull java.lang.String path)  
      @Nullable java.lang.Object get​(@NotNull java.lang.String path)  
      default boolean getBoolean​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Boolean getBoolean​(@NotNull java.lang.String path, @Nullable java.lang.Boolean def)  
      default @Nullable java.lang.Byte getByte​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Byte getByte​(@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.Character getChar​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Character getChar​(@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 YAMLSectionWrapper getConfigurationSection​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Double getDouble​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Double getDouble​(@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.Float getFloat​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Float getFloat​(@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.Integer getInt​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Integer getInt​(@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.Long getLong​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Long getLong​(@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>
      T
      getSerializable​(@NotNull java.lang.String path, @NotNull java.lang.Class<T> clazz)  
      <T extends org.bspfsystems.yamlconfiguration.serialization.ConfigurationSerializable>
      T
      getSerializable​(@NotNull java.lang.String path, @NotNull java.lang.Class<T> clazz, T defaultValue)  
      default @Nullable java.lang.Short getShort​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Short getShort​(@NotNull java.lang.String path, @Nullable java.lang.Short def)  
      @NotNull org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection getSource()  
      default @Nullable java.lang.String getString​(@NotNull java.lang.String path)  
      default @Nullable java.lang.String getString​(@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 boolean isBoolean​(@NotNull java.lang.String path)  
      default @Nullable java.lang.Boolean isByte​(@NotNull java.lang.String path)  
      default boolean isChar​(@NotNull java.lang.String path)  
      boolean isConfigurationSection​(@NotNull java.lang.String path)  
      default boolean isDouble​(@NotNull java.lang.String path)  
      default boolean isFloat​(@NotNull java.lang.String path)  
      default boolean isInt​(@NotNull java.lang.String path)  
      boolean isList​(@NotNull java.lang.String path)  
      default boolean isLong​(@NotNull java.lang.String path)  
      default boolean isShort​(@NotNull java.lang.String path)  
      default boolean isString​(@NotNull java.lang.String path)  
      static @Nullable YAMLSectionWrapper of​(@Nullable org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection section)  
      void set​(@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
    • 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:
        getSource in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • getKeys

        @NotNull
        public @NotNull java.util.Set<java.lang.String> getKeys​(boolean deep)
        Specified by:
        getKeys in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • getValues

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.Object> getValues​(boolean deep)
        Specified by:
        getValues in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • set

        public void set​(@NotNull
                        @NotNull java.lang.String path,
                        @Nullable
                        @Nullable java.lang.Object value)
        Specified by:
        set in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • contains

        public boolean contains​(@NotNull
                                @NotNull java.lang.String path)
        Specified by:
        contains in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • get

        @Nullable
        public @Nullable java.lang.Object get​(@NotNull
                                              @NotNull java.lang.String path)
        Specified by:
        get in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • isList

        public boolean isList​(@NotNull
                              @NotNull java.lang.String path)
        Specified by:
        isList in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • getList

        @Nullable
        public @Nullable java.util.List<?> getList​(@NotNull
                                                   @NotNull java.lang.String path)
        Specified by:
        getList in interface ConfigurationWrapper<org.bspfsystems.yamlconfiguration.configuration.ConfigurationSection>
      • isConfigurationSection

        public boolean isConfigurationSection​(@NotNull
                                              @NotNull java.lang.String path)
        Specified by:
        isConfigurationSection in interface ConfigurationWrapper<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)