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.Set the date range.EasyRandomParameters.excludeField(BiPredicate<Field, Object> predicate) EasyRandomParameters.excludeField(Predicate<Field> predicate) Exclude a field from being randomized.EasyRandomParameters.excludeType(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(BiPredicate<Field, Object> predicate, Randomizer<T> randomizer) Register a custom randomizer for the given field predicate.EasyRandomParameters.randomize(Predicate<Field> predicate, Randomizer<T> randomizer) 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?EasyRandomParameters.seed(long seed) Set the initial random seed.EasyRandomParameters.setCustomRandomizerRegistry(CustomRandomizerRegistry customRandomizerRegistry) EasyRandomParameters.setExclusionPolicy(ExclusionPolicy exclusionPolicy) EasyRandomParameters.stringLengthRange(int minStringLength, int maxStringLength) Set the string length range.Set the time range.Constructors in org.jeasy.random with parameters of type EasyRandomParametersModifierConstructorDescriptionEasyRandom(EasyRandomParameters easyRandomParameters) Create a newEasyRandominstance. -
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 TypeMethodDescriptionvoidRandomizerRegistry.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 TypeMethodDescriptionvoidAnnotationRandomizerRegistry.init(EasyRandomParameters parameters) voidCustomRandomizerRegistry.init(EasyRandomParameters parameters) voidExclusionRandomizerRegistry.init(EasyRandomParameters parameters) Initialize the registry.voidInternalRandomizerRegistry.init(EasyRandomParameters parameters) voidTimeRandomizerRegistry.init(EasyRandomParameters parameters)