Package org.kigalisim.engine.support
Class ChangeExecutorConfigBuilder
java.lang.Object
org.kigalisim.engine.support.ChangeExecutorConfigBuilder
Builder for creating ChangeExecutorConfig instances with fluent interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ChangeExecutorConfig.setAmount(EngineNumber amount) Sets the change amount.Sets the stream identifier.setUseKeyEffective(UseKey useKeyEffective) Sets the effective use key.setYearMatcher(YearMatcher yearMatcher) Sets the year matcher.
-
Constructor Details
-
ChangeExecutorConfigBuilder
public ChangeExecutorConfigBuilder()Create a new ChangeExecutorConfigBuilder.
-
-
Method Details
-
setStream
Sets the stream identifier.- Parameters:
stream- the stream identifier to modify- Returns:
- this builder for method chaining
-
setAmount
Sets the change amount.- Parameters:
amount- the change amount (percentage, units, or kg)- Returns:
- this builder for method chaining
-
setYearMatcher
Sets the year matcher.- Parameters:
yearMatcher- matcher to determine if the change applies to current year- Returns:
- this builder for method chaining
-
setUseKeyEffective
Sets the effective use key.- Parameters:
useKeyEffective- the effective UseKey for the operation- Returns:
- this builder for method chaining
-
build
Builds the ChangeExecutorConfig.- Returns:
- the built ChangeExecutorConfig
- Throws:
IllegalStateException- if required fields are not set
-