Uses of Interface
org.instancio.settings.SettingKey
Packages that use SettingKey
Package
Description
Contains internal classes implementing the core functionality of Instancio.
Contains internal classes related to settings.
Provides classes for overriding settings at runtime.
-
Uses of SettingKey in org.instancio.internal
Methods in org.instancio.internal with parameters of type SettingKeyModifier and TypeMethodDescriptionstatic voidApiValidator.validateKeyValue(@Nullable SettingKey<?> key, @Nullable Object value) -
Uses of SettingKey in org.instancio.internal.settings
Classes in org.instancio.internal.settings that implement SettingKeyMethods in org.instancio.internal.settings that return SettingKeyMethods in org.instancio.internal.settings with parameters of type SettingKeyModifier and TypeMethodDescription<T extends Number & Comparable<T>>
voidRangeAdjuster.adjustRange(Settings settings, SettingKey<T> key, T otherValue) Adjust givenkeybased onotherValue.<T extends Number & Comparable<T>>
voidRangeAdjuster.ForMax.adjustRange(Settings settings, SettingKey<T> maxSetting, T newMin) <T extends Number & Comparable<T>>
voidRangeAdjuster.ForMin.adjustRange(Settings settings, SettingKey<T> minSetting, T newMax) intInternalKey.compareTo(SettingKey<T> o) <T> TInternalSettings.get(@NotNull SettingKey<T> key) <T> InternalSettingsInternalSettings.set(@NotNull SettingKey<T> key, T value) -
Uses of SettingKey in org.instancio.settings
Fields in org.instancio.settings declared as SettingKeyModifier and TypeFieldDescriptionstatic final SettingKey<AfterGenerate>Keys.AFTER_GENERATE_HINTSpecifies the default value of theAfterGeneratehint supplied from custom generators to the engine; default isAfterGenerate.POPULATE_NULLS_AND_DEFAULT_PRIMITIVES; property namehint.after.generate.static final SettingKey<Boolean>Specifies whether anullcan be generated for array elements; default isfalse; property namearray.elements.nullable.static final SettingKey<Integer>Keys.ARRAY_MAX_LENGTHSpecifies maximum length for arrays; default is 6; property namearray.max.length.static final SettingKey<Integer>Keys.ARRAY_MIN_LENGTHSpecifies minimum length for arrays; default is 2; property namearray.min.length.static final SettingKey<Boolean>Keys.ARRAY_NULLABLESpecifies whether a null can be generated for arrays; default isfalse; property namearray.nullable.static final SettingKey<AssignmentType>Keys.ASSIGNMENT_TYPESpecifies how to assign values via reflection, using fields or methods; default isAssignmentType.FIELD; property nameassignment.type.static final SettingKey<Boolean>Specifies whether values should be generated based on Jakarta Bean Validation 3.0 annotations, if present; default isfalse; property namebean.validation.api.enabled.static final SettingKey<Boolean>Keys.BOOLEAN_NULLABLESpecifies whether anullcan be generated for Boolean type; default isfalse; property nameboolean.nullable.static final SettingKey<Byte>Keys.BYTE_MAXSpecifies maximum value for bytes; default is 127; property namebyte.max.static final SettingKey<Byte>Keys.BYTE_MINSpecifies minimum value for bytes; default is 1; property namebyte.min.static final SettingKey<Boolean>Keys.BYTE_NULLABLESpecifies whether anullcan be generated for Byte type; default isfalse; property namebyte.nullable.static final SettingKey<Boolean>Keys.CHARACTER_NULLABLESpecifies whether anullcan be generated for Character type; default isfalse; property namecharacter.nullable.static final SettingKey<Boolean>Specifies whether anullcan be generated for collection elements; default isfalse; property namecollection.elements.nullable.static final SettingKey<Integer>Keys.COLLECTION_MAX_SIZESpecifies maximum size for collections; default is 6; property namecollection.max.size.static final SettingKey<Integer>Keys.COLLECTION_MIN_SIZESpecifies minimum size for collections; default is 2; property namecollection.min.size.static final SettingKey<Boolean>Keys.COLLECTION_NULLABLESpecifies whether anullcan be generated for collections; default isfalse; property namecollection.nullable.static final SettingKey<Double>Keys.DOUBLE_MAXSpecifies maximum value for doubles; default is 10000; property namedouble.max.static final SettingKey<Double>Keys.DOUBLE_MINSpecifies minimum value for doubles; default is 1; property namedouble.min.static final SettingKey<Boolean>Keys.DOUBLE_NULLABLESpecifies whether anullcan be generated for Double type; default isfalse; property namedouble.nullable.static final SettingKey<Float>Keys.FLOAT_MAXSpecifies maximum value for floats; default is 10000; property namefloat.max.static final SettingKey<Float>Keys.FLOAT_MINSpecifies minimum value for floats; default is 1; property namefloat.min.static final SettingKey<Boolean>Keys.FLOAT_NULLABLESpecifies whether anullcan be generated for Float type; default isfalse; property namefloat.nullable.static final SettingKey<Integer>Keys.INTEGER_MAXSpecifies maximum value for integers; default is 10000; property nameinteger.max.static final SettingKey<Integer>Keys.INTEGER_MINSpecifies minimum value for integers; default is 1; property nameinteger.min.static final SettingKey<Boolean>Keys.INTEGER_NULLABLESpecifies whether anullcan be generated for Integer type; default isfalse; property nameinteger.nullable.static final SettingKey<Long>Keys.LONG_MAXSpecifies maximum value for longs; default is 10000; property namelong.max.static final SettingKey<Long>Keys.LONG_MINSpecifies minimum value for longs; default is 1; property namelong.min.static final SettingKey<Boolean>Keys.LONG_NULLABLESpecifies whether anullcan be generated for Long type; default isfalse; property namelong.nullable.static final SettingKey<Boolean>Keys.MAP_KEYS_NULLABLESpecifies whether anullcan be generated for map keys; default isfalse; property namemap.keys.nullable.static final SettingKey<Integer>Keys.MAP_MAX_SIZESpecifies maximum size for maps; default is 6; property namemap.max.size.static final SettingKey<Integer>Keys.MAP_MIN_SIZESpecifies minimum size for maps; default is 2; property namemap.min.size.static final SettingKey<Boolean>Keys.MAP_NULLABLESpecifies whether anullcan be generated for maps; default isfalse; property namemap.nullable.static final SettingKey<Boolean>Keys.MAP_VALUES_NULLABLESpecifies whether anullcan be generated for map values; default isfalse; property namemap.values.nullable.static final SettingKey<Integer>Keys.MAX_DEPTHSpecifies the maximum depth of the generated object tree; default is8; property namemax.depth.static final SettingKey<Mode>Keys.MODESpecifies the mode: strict (unused selectors will trigger an exception) or lenient; default isMode.STRICT; property namemode.static final SettingKey<OnSetFieldError>Keys.ON_SET_FIELD_ERRORSpecifies what should happen if an error occurs setting a field's value; default isOnSetFieldError.IGNORE; property nameon.set.field.error.static final SettingKey<OnSetMethodError>Keys.ON_SET_METHOD_ERRORSpecifies what should happen if an error occurs invoking a setter; default isOnSetMethodError.ASSIGN_FIELD; property nameon.set.method.error.static final SettingKey<OnSetMethodNotFound>Specifies what should happen if a setter method for a field cannot be resolved; default isOnSetMethodNotFound.ASSIGN_FIELD; property nameon.set.method.not.found.static final SettingKey<Boolean>Specifies whether initialised fields are allowed to be overwritten; default istrue; property nameoverwrite.existing.values.static final SettingKey<Long>Keys.SEEDSpecifies the seed value; default isnull; property nameseed.static final SettingKey<SetterStyle>Keys.SETTER_STYLEIndicates the naming convention of setter methods to use; default isSetterStyle.SET; property namesetter.style.static final SettingKey<Short>Keys.SHORT_MAXSpecifies maximum value for shorts; default is 10000; property nameshort.max.static final SettingKey<Short>Keys.SHORT_MINSpecifies minimum value for shorts; default is 1; property nameshort.min.static final SettingKey<Boolean>Keys.SHORT_NULLABLESpecifies whether anullcan be generated for Short type; default isfalse; property nameshort.nullable.static final SettingKey<Boolean>Keys.STRING_ALLOW_EMPTYSpecifies whether an empty string can be generated; default isfalse; property namestring.allow.empty.static final SettingKey<Boolean>Specifies whether generated Strings should be prefixed with field names; default isfalse; property namestring.field.prefix.enabled.static final SettingKey<Integer>Keys.STRING_MAX_LENGTHSpecifies maximum length of strings; default is 10; property namestring.max.length.static final SettingKey<Integer>Keys.STRING_MIN_LENGTHSpecifies minimum length of strings; default is 3; property namestring.min.length.static final SettingKey<Boolean>Keys.STRING_NULLABLESpecifies whether anullcan be generated for String type; default isfalse; property namestring.nullable.Methods in org.instancio.settings that return SettingKeyModifier and TypeMethodDescriptionSettingKey.SettingKeyBuilder.create()Returns the created setting key.static <T> SettingKey<T>Returns aSettingKeyinstance with the given property key.Methods in org.instancio.settings that return types with arguments of type SettingKeyModifier and TypeMethodDescriptionstatic List<SettingKey<Object>>Keys.all()Returns all keys supported by Instancio.Methods in org.instancio.settings with parameters of type SettingKeyModifier and TypeMethodDescription<T> TSettings.get(@NotNull SettingKey<T> key) Get setting value for given key.<T> SettingsSettings.set(@NotNull SettingKey<T> key, T value) Set the setting with the given key to the specified value.