Package org.instancio
Interface InstancioGenApi
- All Superinterfaces:
CommonGeneratorSpecs,SettingsApi,ValueSpecs
A shorthand API for generating value types,
such as strings, numbers, dates, etc.
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescription<V> InstancioGenApiwithSetting(SettingKey<V> key, V value) Overrides the setting for the givenkeywith the specifiedvalue.withSettings(Settings settings) Merges the specifiedSettingswith the current settings, allowing for the addition and update of settings.
-
Method Details
-
withSettings
Merges the specifiedSettingswith the current settings, allowing for the addition and update of settings.Use this method to apply custom settings to override the default ones. The provided settings will be combined with the existing settings, updating any overlapping values and adding any new ones.
- Specified by:
withSettingsin interfaceSettingsApi- Parameters:
settings- the custom settings to merge with the current settings- Returns:
- API builder reference
- Since:
- 5.0.0
- See Also:
-
withSetting
Overrides the setting for the givenkeywith the specifiedvalue.- Specified by:
withSettingin interfaceSettingsApi- Type Parameters:
V- the setting value type- Parameters:
key- the setting key to overridevalue- the setting value- Returns:
- API builder reference
- Since:
- 5.0.0
- See Also:
-