Interface ConfigurateComponentSerializer.Builder

  • Enclosing interface:
    ConfigurateComponentSerializer

    public static interface ConfigurateComponentSerializer.Builder
    A builder for a configurate serializer instance.
    Since:
    4.0.0
    • Method Detail

      • scalarSerializer

        @NotNull
        @NotNull ConfigurateComponentSerializer.Builder scalarSerializer​(@NotNull
                                                                         @NotNull ComponentSerializer<Component,​?,​java.lang.String> stringSerializer)
        Set the serializer to use when reading Components.

        While the created serializer will always be able to read and write Components in their object structure, for configuration purposes it is often easier to work with Components as Strings using one of a variety of available representations.

        Parameters:
        stringSerializer - string serializer to use
        Returns:
        this builder
        Since:
        4.0.0