Interface GsonSupportConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<GsonSupport>
All Known Implementing Classes:
GsonSupportConfig.BuilderBase.GsonSupportConfigImpl

public interface GsonSupportConfig extends Prototype.Api
Configuration of the GsonSupport.
See Also:
  • Method Details

    • builder

      static GsonSupportConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static GsonSupportConfig.Builder builder(GsonSupportConfig instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static GsonSupportConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static GsonSupportConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static GsonSupportConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • name

      String name()
      Name of the support. Default value is gson.
      Returns:
      name of the support
    • gson

      com.google.gson.Gson gson()
      Gson instance.
      Returns:
      gson instance
    • properties

      Map<String,Boolean> properties()
      Gson configuration properties. Properties are being ignored if specific Gson is set. Only boolean configuration values are supported.
      Returns:
      gson config properties