Uses of Class
org.jeasy.random.EasyRandomParameters
Packages that use EasyRandomParameters
Package
Description
Core implementation of Easy Random.
Public API.
This package contains internal registries.
-
Uses of EasyRandomParameters in org.jeasy.random
Methods in org.jeasy.random that return EasyRandomParametersModifier and TypeMethodDescriptionEasyRandomParameters.bypassSetters
(boolean bypassSetters) Flag to bypass setters if any and use reflection directly instead.Set the charset to use for character based fields.EasyRandomParameters.collectionSizeRange
(int minCollectionSize, int maxCollectionSize) Set the collection size range.EasyRandomParameters.copy()
Return a shallow copy of randomization parameters.EasyRandomParameters.dateRange
(java.time.LocalDate min, java.time.LocalDate max) Set the date range.EasyRandomParameters.excludeField
(java.util.function.Predicate<Field> predicate) Exclude a field from being randomized.EasyRandomParameters.excludeType
(java.util.function.Predicate<Class<?>> predicate) Exclude a type from being randomized.EasyRandomParameters.exclusionPolicy
(ExclusionPolicy exclusionPolicy) Provide a custom exclusion policy.EasyRandomParameters.ignoreRandomizationErrors
(boolean ignoreRandomizationErrors) With this parameter, any randomization error will be silently ignored and the corresponding field will be set to null.EasyRandomParameters.objectFactory
(ObjectFactory objectFactory) Provide a custom object factory.EasyRandomParameters.objectPoolSize
(int objectPoolSize) Set the number of different objects to generate for a type.EasyRandomParameters.overrideDefaultInitialization
(boolean overrideDefaultInitialization) Should default initialization of field values be overridden? E.g.EasyRandomParameters.randomizationDepth
(int randomizationDepth) Set the randomization depth for objects graph.EasyRandomParameters.randomize
(Class<T> type, Randomizer<T> randomizer) Register a custom randomizer for a given type.EasyRandomParameters.randomize
(java.util.function.Predicate<Field> predicate, Randomizer<T> randomizer) Register a custom randomizer for the given field predicate.EasyRandomParameters.randomizerProvider
(RandomizerProvider randomizerProvider) Provide a custom randomizer provider.EasyRandomParameters.randomizerRegistry
(RandomizerRegistry registry) Register aRandomizerRegistry
.EasyRandomParameters.scanClasspathForConcreteTypes
(boolean scanClasspathForConcreteTypes) Should the classpath be scanned for concrete types when a field with an interface or abstract class type is encountered? Deactivated by default.EasyRandomParameters.seed
(long seed) Set the initial random seed.EasyRandomParameters.stringLengthRange
(int minStringLength, int maxStringLength) Set the string length range.EasyRandomParameters.timeRange
(java.time.LocalTime min, java.time.LocalTime max) Set the time range.Constructors in org.jeasy.random with parameters of type EasyRandomParametersModifierConstructorDescriptionEasyRandom
(EasyRandomParameters easyRandomParameters) Create a newEasyRandom
instance. -
Uses of EasyRandomParameters in org.jeasy.random.api
Methods in org.jeasy.random.api that return EasyRandomParametersModifier and TypeMethodDescriptionRandomizerContext.getParameters()
Return the currently used parameters by the enclosingEasyRandom
.Methods in org.jeasy.random.api with parameters of type EasyRandomParametersModifier and TypeMethodDescriptionvoid
RandomizerRegistry.init
(EasyRandomParameters parameters) Initialize the registry. -
Uses of EasyRandomParameters in org.jeasy.random.randomizers.registry
Methods in org.jeasy.random.randomizers.registry with parameters of type EasyRandomParametersModifier and TypeMethodDescriptionvoid
AnnotationRandomizerRegistry.init
(EasyRandomParameters parameters) void
CustomRandomizerRegistry.init
(EasyRandomParameters parameters) void
ExclusionRandomizerRegistry.init
(EasyRandomParameters parameters) Initialize the registry.void
InternalRandomizerRegistry.init
(EasyRandomParameters parameters) void
TimeRandomizerRegistry.init
(EasyRandomParameters parameters)