Class AbstractConfigBuilder<T,​B extends AbstractConfigBuilder<T,​B,​P>,​P extends ConfigurationProvider<?>>

  • Direct Known Subclasses:
    CommonConfigBuilder

    public abstract class AbstractConfigBuilder<T,​B extends AbstractConfigBuilder<T,​B,​P>,​P extends ConfigurationProvider<?>>
    extends java.lang.Object
    • Field Detail

      • path

        @Nullable
        protected @Nullable java.lang.String path
      • headerComments

        @Nullable
        protected @Nullable java.util.List<java.lang.String> headerComments
      • inlineComment

        @Nullable
        protected @Nullable java.lang.String inlineComment
      • defaultValue

        @Nullable
        protected T defaultValue
    • Constructor Detail

      • AbstractConfigBuilder

        public AbstractConfigBuilder​(java.lang.Class<? super P> providerClass)
    • Method Detail

      • getThis

        @NotNull
        protected abstract B getThis()
      • build

        @NotNull
        public abstract @NotNull ConfigValue<?> build()
      • from

        @NotNull
        public B from​(@Nullable
                      P provider)
      • path

        @NotNull
        public B path​(@Nullable
                      @Nullable java.lang.String path)
      • comments

        @NotNull
        public B comments​(@NotNull
                          @NotNull java.lang.String... comments)
      • headerComments

        @NotNull
        public B headerComments​(@NotNull
                                @NotNull java.lang.String... comments)
      • headerComments

        @NotNull
        public B headerComments​(@NotNull
                                @NotNull java.util.List<java.lang.String> comments)
      • inlineComment

        @NotNull
        public B inlineComment​(@NotNull
                               @NotNull java.lang.String comment)
      • defaults

        @NotNull
        public B defaults​(@Nullable
                          T defaultValue)
      • defaults

        @NotNull
        public B defaults​(@NotNull
                          @NotNull java.util.function.Supplier<@Nullable T> defaultValueSupplier)
      • buildManifest

        @NotNull
        protected @NotNull ValueManifest<T> buildManifest()