Uses of Interface
org.jeasy.random.api.Randomizer
Packages that use Randomizer
Package
Description
Core implementation of Easy Random.
Public API.
Built-in
Randomizer
s.This package contains collection randomizers.
This package contains miscellaneous randomizers.
This package contains java.net types randomizers.
This package contains number randomizers.
This package contains range randomizers.
This package contains internal registries.
This package contains text types randomizers.
This package contains randomizers for date and time types.
Public utility classes.
-
Uses of Randomizer in org.jeasy.random
Methods in org.jeasy.random with parameters of type RandomizerModifier and TypeMethodDescriptionEasyRandomParameters.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) -
Uses of Randomizer in org.jeasy.random.api
Subinterfaces of Randomizer in org.jeasy.random.apiModifier and TypeInterfaceDescriptioninterface
Interface for aRandomizer
that is aware of therandomization context
it is invoked in.Methods in org.jeasy.random.api that return RandomizerModifier and TypeMethodDescriptionRandomizer<?>
RandomizerRegistry.getRandomizer
(Class<?> type) Retrieves a randomizer for a given type.Randomizer<?>
RandomizerRegistry.getRandomizer
(Field field) Retrieves a randomizer for the given field.default Randomizer<?>
RandomizerRegistry.getRandomizer
(Field field, Object additionalData) default Randomizer<?>
RandomizerProvider.getRandomizerByField
(Field field, RandomizerContext context) Return a randomizer for the given field in the current context.default <T> Randomizer<T>
RandomizerProvider.getRandomizerByType
(Class<T> type, RandomizerContext context) Return a randomizer for the given type in the current context. -
Uses of Randomizer in org.jeasy.random.randomizers
Classes in org.jeasy.random.randomizers that implement Randomizer -
Uses of Randomizer in org.jeasy.random.randomizers.collection
Classes in org.jeasy.random.randomizers.collection that implement RandomizerModifier and TypeClassDescriptionclass
EnumSetRandomizer<E extends Enum<E>>
class
A customRandomizer
that generates a list of random values using a delegateRandomizer
.class
MapRandomizer<K,
V> ARandomizer
that generates aMap
with random entries.class
ARandomizer
that generates a queue of random values using a delegateRandomizer
.class
ARandomizer
that generates a set of random values using a delegateRandomizer
.Constructors in org.jeasy.random.randomizers.collection with parameters of type RandomizerModifierConstructorDescriptionListRandomizer
(Randomizer<T> elementRandomizer) Create a newListRandomizer
that will generate a list with a random number of elements.ListRandomizer
(Randomizer<T> elementRandomizer, int nbElements) Create a newListRandomizer
that will generate a list with a fixed number of elements.MapRandomizer
(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer) Create a newMapRandomizer
with a random number of entries.MapRandomizer
(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer, int nbEntries) Create a newMapRandomizer
with a fixed number of entries.QueueRandomizer
(Randomizer<T> delegate) Create a newQueueRandomizer
that will generate a queue with a random number of elements.QueueRandomizer
(Randomizer<T> delegate, int nbElements) Create a newQueueRandomizer
that will generate a queue with a fixed number of elements.SetRandomizer
(Randomizer<T> delegate) Create a newSetRandomizer
that will generate aSet
with a random number of elements.SetRandomizer
(Randomizer<T> delegate, int nbElements) Create a newSetRandomizer
that will generate aSet
with a fixed number of elements. -
Uses of Randomizer in org.jeasy.random.randomizers.misc
Classes in org.jeasy.random.randomizers.misc that implement RandomizerModifier and TypeClassDescriptionclass
Generate a randomBoolean
.class
ARandomizer
that generates constant values.class
EnumRandomizer<E extends Enum<E>>
ARandomizer
that generates a random value from a givenEnum
.class
Generate a randomLocale
.class
ARandomizer
that generates null values.class
ARandomizer
which, according to the optional percent, returns the random value from a delegate.class
A randomizer used to skip fields from being populated.class
Generate a randomUUID
.Constructors in org.jeasy.random.randomizers.misc with parameters of type RandomizerModifierConstructorDescriptionOptionalRandomizer
(Randomizer<T> delegate, int optionalPercent) Create a newOptionalRandomizer
with a delegate randomizer and an optional percent threshold. -
Uses of Randomizer in org.jeasy.random.randomizers.net
Classes in org.jeasy.random.randomizers.net that implement Randomizer -
Uses of Randomizer in org.jeasy.random.randomizers.number
Classes in org.jeasy.random.randomizers.number that implement RandomizerModifier and TypeClassDescriptionclass
Generate a randomAtomicInteger
.class
Generate a randomAtomicLong
.class
Generate a randomBigDecimal
.class
Generate a randomBigInteger
.class
Generate a randomByte
.class
Generate a randomDouble
.class
Generate a randomFloat
.class
Generate a randomInteger
.class
Generate a randomLong
.class
Generate a randomNumber
.class
Generate a randomShort
. -
Uses of Randomizer in org.jeasy.random.randomizers.range
Classes in org.jeasy.random.randomizers.range that implement RandomizerModifier and TypeClassDescriptionclass
Abstract class for range randomizers.class
Generate a randomBigDecimal
in the given range.class
Generate a randomBigInteger
in the given range.class
Generate a randomByte
in the given range.class
Generate a randomDate
in the given range.class
Generate a randomDouble
in the given range.class
Generate a randomFloat
in the given range.class
class
Generate a randomInteger
in the given range.class
Generate a randomLocalDate
in the given range.class
Generate a randomLocalDateTime
in the given range.class
Generate a randomLocalTime
in the given range.class
Generate a randomLong
in the given range.class
Generate a randomOffsetDateTime
in the given range.class
Generate a randomOffsetTime
in the given range.class
Generate a randomShort
in the given range.class
Generate a randomDate
in a given range.class
Generate a randomYearMonth
in the given range.class
Generate a randomYear
in the given range.class
Generate a randomZonedDateTime
in the given range. -
Uses of Randomizer in org.jeasy.random.randomizers.registry
Fields in org.jeasy.random.randomizers.registry with type parameters of type RandomizerModifier and TypeFieldDescriptionprotected final Map<BiPredicate<Field,
Object>, Randomizer<?>> CustomRandomizerRegistry.customFieldRandomizersRegistry
protected final Map<Class<?>,
Randomizer<?>> CustomRandomizerRegistry.customTypeRandomizersRegistry
Methods in org.jeasy.random.randomizers.registry that return RandomizerModifier and TypeMethodDescriptionRandomizer<?>
AnnotationRandomizerRegistry.getRandomizer
(Class<?> clazz) Retrieves a randomizer for a given type.Randomizer<?>
AnnotationRandomizerRegistry.getRandomizer
(Field field) Retrieves a randomizer for the given field.Randomizer<?>
CustomRandomizerRegistry.getRandomizer
(Class<?> type) Randomizer<?>
CustomRandomizerRegistry.getRandomizer
(Field field) Randomizer<?>
ExclusionRandomizerRegistry.getRandomizer
(Class<?> clazz) Retrieves a randomizer for a given type.Randomizer<?>
ExclusionRandomizerRegistry.getRandomizer
(Field field) Retrieves a randomizer for the given field.Randomizer<?>
InternalRandomizerRegistry.getRandomizer
(Class<?> type) Retrieves a randomizer for a given type.Randomizer<?>
InternalRandomizerRegistry.getRandomizer
(Field field) Randomizer<?>
TimeRandomizerRegistry.getRandomizer
(Class<?> type) Randomizer<?>
TimeRandomizerRegistry.getRandomizer
(Field field) Methods in org.jeasy.random.randomizers.registry with parameters of type RandomizerModifier and TypeMethodDescription<T,
R> void CustomRandomizerRegistry.registerRandomizer
(Class<T> type, Randomizer<R> randomizer) void
CustomRandomizerRegistry.registerRandomizer
(BiPredicate<Field, Object> predicate, Randomizer<?> randomizer) -
Uses of Randomizer in org.jeasy.random.randomizers.text
Classes in org.jeasy.random.randomizers.text that implement RandomizerModifier and TypeClassDescriptionclass
Generate a randomCharacter
.class
ARandomizer
that stringify values generated by a delegateRandomizer
.class
Generate a randomString
.Constructors in org.jeasy.random.randomizers.text with parameters of type RandomizerModifierConstructorDescriptionStringDelegatingRandomizer
(Randomizer<?> delegate) Create a newStringDelegatingRandomizer
. -
Uses of Randomizer in org.jeasy.random.randomizers.time
Classes in org.jeasy.random.randomizers.time that implement RandomizerModifier and TypeClassDescriptionclass
Generate a randomCalendar
.class
Generate a randomDate
.class
ARandomizer
that generates a random day value betweenDayRandomizer.MIN_DAY
andDayRandomizer.MAX_DAY
.class
ARandomizer
that generates randomDuration
.class
Generate a randomGregorianCalendarRandomizer
.class
ARandomizer
that generates a random hour value betweenHourRandomizer.MIN_HOUR
andHourRandomizer.MAX_HOUR
.class
ARandomizer
that generates randomInstant
.class
ARandomizer
that generates randomLocalDate
.class
ARandomizer
that generates randomLocalDateTime
.class
ARandomizer
that generates randomLocalTime
.class
ARandomizer
that generates a random minute value betweenMinuteRandomizer.MIN_MINUTE
andMinuteRandomizer.MAX_MINUTE
.class
ARandomizer
that generates randomMonthDay
.class
ARandomizer
that generates a random nano-second value betweenNanoSecondRandomizer.MIN_NANO_SECOND
andNanoSecondRandomizer.MAX_NANO_SECOND
.class
ARandomizer
that generates randomOffsetDateTime
.class
ARandomizer
that generates randomOffsetTime
.class
ARandomizer
that generates randomPeriod
.class
Generate a randomDate
.class
Generate a randomTime
.class
Generate a randomTimestamp
.class
Generate a randomTimeZone
.class
ARandomizer
that generates randomYearMonth
.class
ARandomizer
that generates randomYear
.class
ARandomizer
that generates randomZonedDateTime
.class
ARandomizer
that generates randomZoneId
.class
ARandomizer
that generates randomZoneOffset
. -
Uses of Randomizer in org.jeasy.random.util
Methods in org.jeasy.random.util that return RandomizerModifier and TypeMethodDescriptionstatic <T> Randomizer<T>
ReflectionUtils.asRandomizer
(Supplier<T> supplier) Create a dynamic proxy that adapts the givenSupplier
to aRandomizer
.static <T> Randomizer<T>
ReflectionUtils.newInstance
(Class<T> type, RandomizerArgument[] randomizerArguments)