Package ch.raffael.meldioc.model.config
Class SetupConfig.Builder<S>
java.lang.Object
ch.raffael.meldioc.model.config.SetupConfig.Builder<S>
- Enclosing class:
SetupConfig<S>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSetupConfig.final SetupConfig.Builder<S>from(ElementConfig<S> instance) Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ElementConfiginstance.final SetupConfig.Builder<S>from(SetupConfig<S> instance) Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.SetupConfiginstance.final SetupConfig.Builder<S>Initializes the value for thesourceattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ElementConfiginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.SetupConfiginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
source
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSetupConfig.- Returns:
- An immutable instance of SetupConfig
- Throws:
ch.raffael.meldioc.util.immutables.IllegalBuilderStateException- if any required attributes are missing
-