Uses of Interface
org.jeasy.random.api.Randomizer
-
Packages that use Randomizer Package Description org.jeasy.random Core implementation of Easy Random.org.jeasy.random.annotation Public annotations.org.jeasy.random.api Public API.org.jeasy.random.randomizers Built-inRandomizers.org.jeasy.random.randomizers.collection This package contains collection randomizers.org.jeasy.random.randomizers.misc This package contains miscellaneous randomizers.org.jeasy.random.randomizers.net This package contains java.net types randomizers.org.jeasy.random.randomizers.number This package contains number randomizers.org.jeasy.random.randomizers.range This package contains range randomizers.org.jeasy.random.randomizers.registry This package contains internal registries.org.jeasy.random.randomizers.text This package contains text types randomizers.org.jeasy.random.randomizers.time This package contains randomizers for date and time types.org.jeasy.random.util Public utility classes. -
-
Uses of Randomizer in org.jeasy.random
Methods in org.jeasy.random with parameters of type Randomizer Modifier and Type Method Description <T> EasyRandomParametersEasyRandomParameters. randomize(java.lang.Class<T> type, Randomizer<T> randomizer)Register a custom randomizer for a given type.<T> EasyRandomParametersEasyRandomParameters. randomize(java.util.function.Predicate<java.lang.reflect.Field> predicate, Randomizer<T> randomizer)Register a custom randomizer for the given field predicate. -
Uses of Randomizer in org.jeasy.random.annotation
Methods in org.jeasy.random.annotation that return types with arguments of type Randomizer Modifier and Type Method Description java.lang.Class<? extends Randomizer<?>>value()TheRandomizerto use to generate the random value for this field. -
Uses of Randomizer in org.jeasy.random.api
Subinterfaces of Randomizer in org.jeasy.random.api Modifier and Type Interface Description interfaceContextAwareRandomizer<T>Interface for aRandomizerthat is aware of therandomization contextit is invoked in.Methods in org.jeasy.random.api that return Randomizer Modifier and Type Method Description Randomizer<?>RandomizerRegistry. getRandomizer(java.lang.Class<?> type)Retrieves a randomizer for a given type.Randomizer<?>RandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Retrieves a randomizer for the given field.default Randomizer<?>RandomizerProvider. getRandomizerByField(java.lang.reflect.Field field, RandomizerContext context)Return a randomizer for the given field in the current context.default <T> Randomizer<T>RandomizerProvider. getRandomizerByType(java.lang.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 Modifier and Type Class Description classAbstractRandomizer<T>Base class forRandomizerimplementations. -
Uses of Randomizer in org.jeasy.random.randomizers.collection
Classes in org.jeasy.random.randomizers.collection that implement Randomizer Modifier and Type Class Description classEnumSetRandomizer<E extends java.lang.Enum<E>>classListRandomizer<T>A customRandomizerthat generates a list of random values using a delegateRandomizer.classMapRandomizer<K,V>ARandomizerthat generates aMapwith random entries.classQueueRandomizer<T>ARandomizerthat generates a queue of random values using a delegateRandomizer.classSetRandomizer<T>ARandomizerthat generates a set of random values using a delegateRandomizer.Constructors in org.jeasy.random.randomizers.collection with parameters of type Randomizer Constructor Description ListRandomizer(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 Randomizer Modifier and Type Class Description classBooleanRandomizerGenerate a randomBoolean.classConstantRandomizer<T>ARandomizerthat generates constant values.classEnumRandomizer<E extends java.lang.Enum<E>>ARandomizerthat generates a random value from a givenEnum.classLocaleRandomizerGenerate a randomLocale.classNullRandomizerARandomizerthat generates null values.classOptionalRandomizer<T>ARandomizerwhich, according to the optional percent, returns the random value from a delegate.classSkipRandomizerA randomizer used to skip fields from being populated.classUUIDRandomizerGenerate a randomUUID.Constructors in org.jeasy.random.randomizers.misc with parameters of type Randomizer Constructor Description OptionalRandomizer(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 Modifier and Type Class Description classUriRandomizerGenerate a randomURI.classUrlRandomizerGenerate a randomURL. -
Uses of Randomizer in org.jeasy.random.randomizers.number
Classes in org.jeasy.random.randomizers.number that implement Randomizer Modifier and Type Class Description classAtomicIntegerRandomizerGenerate a randomAtomicInteger.classAtomicLongRandomizerGenerate a randomAtomicLong.classBigDecimalRandomizerGenerate a randomBigDecimal.classBigIntegerRandomizerGenerate a randomBigInteger.classByteRandomizerGenerate a randomByte.classDoubleRandomizerGenerate a randomDouble.classFloatRandomizerGenerate a randomFloat.classIntegerRandomizerGenerate a randomInteger.classLongRandomizerGenerate a randomLong.classNumberRandomizerGenerate a randomNumber.classShortRandomizerGenerate a randomShort. -
Uses of Randomizer in org.jeasy.random.randomizers.range
Classes in org.jeasy.random.randomizers.range that implement Randomizer Modifier and Type Class Description classAbstractRangeRandomizer<T>Abstract class for range randomizers.classBigDecimalRangeRandomizerGenerate a randomBigDecimalin the given range.classBigIntegerRangeRandomizerGenerate a randomBigIntegerin the given range.classByteRangeRandomizerGenerate a randomBytein the given range.classDateRangeRandomizerGenerate a randomDatein the given range.classDoubleRangeRandomizerGenerate a randomDoublein the given range.classFloatRangeRandomizerGenerate a randomFloatin the given range.classInstantRangeRandomizerclassIntegerRangeRandomizerGenerate a randomIntegerin the given range.classLocalDateRangeRandomizerGenerate a randomLocalDatein the given range.classLocalDateTimeRangeRandomizerGenerate a randomLocalDateTimein the given range.classLocalTimeRangeRandomizerGenerate a randomLocalTimein the given range.classLongRangeRandomizerGenerate a randomLongin the given range.classOffsetDateTimeRangeRandomizerGenerate a randomOffsetDateTimein the given range.classOffsetTimeRangeRandomizerGenerate a randomOffsetTimein the given range.classShortRangeRandomizerGenerate a randomShortin the given range.classSqlDateRangeRandomizerGenerate a randomDatein a given range.classYearMonthRangeRandomizerGenerate a randomYearMonthin the given range.classYearRangeRandomizerGenerate a randomYearin the given range.classZonedDateTimeRangeRandomizerGenerate a randomZonedDateTimein the given range. -
Uses of Randomizer in org.jeasy.random.randomizers.registry
Methods in org.jeasy.random.randomizers.registry that return Randomizer Modifier and Type Method Description Randomizer<?>AnnotationRandomizerRegistry. getRandomizer(java.lang.Class<?> clazz)Retrieves a randomizer for a given type.Randomizer<?>AnnotationRandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Retrieves a randomizer for the given field.Randomizer<?>CustomRandomizerRegistry. getRandomizer(java.lang.Class<?> type)Randomizer<?>CustomRandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Randomizer<?>ExclusionRandomizerRegistry. getRandomizer(java.lang.Class<?> clazz)Retrieves a randomizer for a given type.Randomizer<?>ExclusionRandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Retrieves a randomizer for the given field.Randomizer<?>InternalRandomizerRegistry. getRandomizer(java.lang.Class<?> type)Retrieves a randomizer for a given type.Randomizer<?>InternalRandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Randomizer<?>TimeRandomizerRegistry. getRandomizer(java.lang.Class<?> type)Randomizer<?>TimeRandomizerRegistry. getRandomizer(java.lang.reflect.Field field)Methods in org.jeasy.random.randomizers.registry with parameters of type Randomizer Modifier and Type Method Description <T,R>
voidCustomRandomizerRegistry. registerRandomizer(java.lang.Class<T> type, Randomizer<R> randomizer)voidCustomRandomizerRegistry. registerRandomizer(java.util.function.Predicate<java.lang.reflect.Field> predicate, Randomizer<?> randomizer) -
Uses of Randomizer in org.jeasy.random.randomizers.text
Classes in org.jeasy.random.randomizers.text that implement Randomizer Modifier and Type Class Description classCharacterRandomizerGenerate a randomCharacter.classStringDelegatingRandomizerARandomizerthat stringify values generated by a delegateRandomizer.classStringRandomizerGenerate a randomString.Constructors in org.jeasy.random.randomizers.text with parameters of type Randomizer Constructor Description StringDelegatingRandomizer(Randomizer<?> delegate)Create a newStringDelegatingRandomizer. -
Uses of Randomizer in org.jeasy.random.randomizers.time
Classes in org.jeasy.random.randomizers.time that implement Randomizer Modifier and Type Class Description classCalendarRandomizerGenerate a randomCalendar.classDateRandomizerGenerate a randomDate.classDayRandomizerARandomizerthat generates a random day value betweenDayRandomizer.MIN_DAYandDayRandomizer.MAX_DAY.classDurationRandomizerARandomizerthat generates randomDuration.classGregorianCalendarRandomizerGenerate a randomGregorianCalendarRandomizer.classHourRandomizerARandomizerthat generates a random hour value betweenHourRandomizer.MIN_HOURandHourRandomizer.MAX_HOUR.classInstantRandomizerARandomizerthat generates randomInstant.classLocalDateRandomizerARandomizerthat generates randomLocalDate.classLocalDateTimeRandomizerARandomizerthat generates randomLocalDateTime.classLocalTimeRandomizerARandomizerthat generates randomLocalTime.classMinuteRandomizerARandomizerthat generates a random minute value betweenMinuteRandomizer.MIN_MINUTEandMinuteRandomizer.MAX_MINUTE.classMonthDayRandomizerARandomizerthat generates randomMonthDay.classNanoSecondRandomizerARandomizerthat generates a random nano-second value betweenNanoSecondRandomizer.MIN_NANO_SECONDandNanoSecondRandomizer.MAX_NANO_SECOND.classOffsetDateTimeRandomizerARandomizerthat generates randomOffsetDateTime.classOffsetTimeRandomizerARandomizerthat generates randomOffsetTime.classPeriodRandomizerARandomizerthat generates randomPeriod.classSqlDateRandomizerGenerate a randomDate.classSqlTimeRandomizerGenerate a randomTime.classSqlTimestampRandomizerGenerate a randomTimestamp.classTimeZoneRandomizerGenerate a randomTimeZone.classYearMonthRandomizerARandomizerthat generates randomYearMonth.classYearRandomizerARandomizerthat generates randomYear.classZonedDateTimeRandomizerARandomizerthat generates randomZonedDateTime.classZoneIdRandomizerARandomizerthat generates randomZoneId.classZoneOffsetRandomizerARandomizerthat generates randomZoneOffset. -
Uses of Randomizer in org.jeasy.random.util
Methods in org.jeasy.random.util that return Randomizer Modifier and Type Method Description static <T> Randomizer<T>ReflectionUtils. asRandomizer(java.util.function.Supplier<T> supplier)Create a dynamic proxy that adapts the givenSupplierto aRandomizer.static <T> Randomizer<T>ReflectionUtils. newInstance(java.lang.Class<T> type, RandomizerArgument[] randomizerArguments)
-