Class AbstractConfig<C extends AbstractConfig>

    • Constructor Detail

      • AbstractConfig

        public AbstractConfig()
    • Method Detail

      • inherit

        public abstract C inherit​(C inheritedConfig)
        Inherits each property of the inheritedConfig unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).

        After the inheritance, if a property on this AbstractConfig composition is replaced, it should not affect the inherited composition instance.

        Parameters:
        inheritedConfig - never null
        Returns:
        this
      • copyConfig

        public abstract C copyConfig()
        Typically implemented by constructing a new instance and calling inherit(AbstractConfig) on it
        Returns:
        new instance