Uses of Interface
org.jeasy.random.api.Randomizer
Packages that use Randomizer
Package
Description
Core implementation of Easy Random.
Public API.
Built-in
Randomizers.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 TypeInterfaceDescriptioninterfaceInterface for aRandomizerthat is aware of therandomization contextit 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<?>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 TypeClassDescriptionclassEnumSetRandomizer<E extends Enum<E>>classA customRandomizerthat generates a list of random values using a delegateRandomizer.classMapRandomizer<K,V> ARandomizerthat generates aMapwith random entries.classARandomizerthat generates a queue of random values using a delegateRandomizer.classARandomizerthat 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 newListRandomizerthat will generate a list with a random number of elements.ListRandomizer(Randomizer<T> elementRandomizer, int nbElements) Create a newListRandomizerthat will generate a list with a fixed number of elements.MapRandomizer(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer) Create a newMapRandomizerwith a random number of entries.MapRandomizer(Randomizer<K> keyRandomizer, Randomizer<V> valueRandomizer, int nbEntries) Create a newMapRandomizerwith a fixed number of entries.QueueRandomizer(Randomizer<T> delegate) Create a newQueueRandomizerthat will generate a queue with a random number of elements.QueueRandomizer(Randomizer<T> delegate, int nbElements) Create a newQueueRandomizerthat will generate a queue with a fixed number of elements.SetRandomizer(Randomizer<T> delegate) Create a newSetRandomizerthat will generate aSetwith a random number of elements.SetRandomizer(Randomizer<T> delegate, int nbElements) Create a newSetRandomizerthat will generate aSetwith 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 TypeClassDescriptionclassGenerate a randomBoolean.classARandomizerthat generates constant values.classEnumRandomizer<E extends Enum<E>>ARandomizerthat generates a random value from a givenEnum.classGenerate a randomLocale.classARandomizerthat generates null values.classARandomizerwhich, according to the optional percent, returns the random value from a delegate.classA randomizer used to skip fields from being populated.classGenerate a randomUUID.Constructors in org.jeasy.random.randomizers.misc with parameters of type RandomizerModifierConstructorDescriptionOptionalRandomizer(Randomizer<T> delegate, int optionalPercent) Create a newOptionalRandomizerwith 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 TypeClassDescriptionclassGenerate a randomAtomicInteger.classGenerate a randomAtomicLong.classGenerate a randomBigDecimal.classGenerate a randomBigInteger.classGenerate a randomByte.classGenerate a randomDouble.classGenerate a randomFloat.classGenerate a randomInteger.classGenerate a randomLong.classGenerate a randomNumber.classGenerate a randomShort. -
Uses of Randomizer in org.jeasy.random.randomizers.range
Classes in org.jeasy.random.randomizers.range that implement RandomizerModifier and TypeClassDescriptionclassAbstract class for range randomizers.classGenerate a randomBigDecimalin the given range.classGenerate a randomBigIntegerin the given range.classGenerate a randomBytein the given range.classGenerate a randomDatein the given range.classGenerate a randomDoublein the given range.classGenerate a randomFloatin the given range.classclassGenerate a randomIntegerin the given range.classGenerate a randomLocalDatein the given range.classGenerate a randomLocalDateTimein the given range.classGenerate a randomLocalTimein the given range.classGenerate a randomLongin the given range.classGenerate a randomOffsetDateTimein the given range.classGenerate a randomOffsetTimein the given range.classGenerate a randomShortin the given range.classGenerate a randomDatein a given range.classGenerate a randomYearMonthin the given range.classGenerate a randomYearin the given range.classGenerate a randomZonedDateTimein the given range. -
Uses of Randomizer in org.jeasy.random.randomizers.registry
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) voidCustomRandomizerRegistry.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 TypeClassDescriptionclassGenerate a randomCharacter.classARandomizerthat stringify values generated by a delegateRandomizer.classGenerate 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 TypeClassDescriptionclassGenerate a randomCalendar.classGenerate a randomDate.classARandomizerthat generates a random day value betweenDayRandomizer.MIN_DAYandDayRandomizer.MAX_DAY.classARandomizerthat generates randomDuration.classGenerate a randomGregorianCalendarRandomizer.classARandomizerthat generates a random hour value betweenHourRandomizer.MIN_HOURandHourRandomizer.MAX_HOUR.classARandomizerthat generates randomInstant.classARandomizerthat generates randomLocalDate.classARandomizerthat generates randomLocalDateTime.classARandomizerthat generates randomLocalTime.classARandomizerthat generates a random minute value betweenMinuteRandomizer.MIN_MINUTEandMinuteRandomizer.MAX_MINUTE.classARandomizerthat generates randomMonthDay.classARandomizerthat generates a random nano-second value betweenNanoSecondRandomizer.MIN_NANO_SECONDandNanoSecondRandomizer.MAX_NANO_SECOND.classARandomizerthat generates randomOffsetDateTime.classARandomizerthat generates randomOffsetTime.classARandomizerthat generates randomPeriod.classGenerate a randomDate.classGenerate a randomTime.classGenerate a randomTimestamp.classGenerate a randomTimeZone.classARandomizerthat generates randomYearMonth.classARandomizerthat generates randomYear.classARandomizerthat generates randomZonedDateTime.classARandomizerthat generates randomZoneId.classARandomizerthat 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 givenSupplierto aRandomizer.static <T> Randomizer<T>ReflectionUtils.newInstance(Class<T> type, RandomizerArgument[] randomizerArguments)