Package | Description |
---|---|
de.slothsoft.random | |
de.slothsoft.random.types |
Modifier and Type | Class and Description |
---|---|
class |
RandomFactory<T>
The main class for creating random data inside a defined POJO.
|
Modifier and Type | Method and Description |
---|---|
RandomField |
RandomFieldSupplier.createRandomField()
Deprecated.
|
RandomField |
RandomFieldSupplier.createRandomField(String fieldName,
Class<?> fieldClass)
Creates a new instance of
RandomField to use for a
RandomFactory . |
static RandomField |
RandomFieldSupplier.createRandomFieldByField(String propertyName,
Class<?> propertyClass)
Creates a
RandomField for a property name and class. |
RandomField |
RandomFactory.findRandomField(String property)
Returns the
RandomField used to fill the property. |
RandomField |
RandomFactory.getRandomField(String property)
Returns the
RandomField used to fill the property. |
Modifier and Type | Method and Description |
---|---|
void |
RandomFactory.addRandomField(String property,
RandomField randomField)
Adds a
RandomField to fill some property. |
Constructor and Description |
---|
RandomFactory(RandomFactory.Supplier<T> pojoSupplier,
Map<String,RandomField> fieldMapping)
A constructor that takes one class and the mapping of properties to the factories
filling them.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractNumberRandomField<N extends Number>
A base class for creating a
RandomField from a Number . |
class |
ArrayRandomField
A
RandomField representing an array. |
class |
BigDecimalRandomField
A
RandomField representing a BigDecimal . |
class |
BigIntegerRandomField
A
RandomField representing a BigInteger . |
class |
BirthdayRandomField
A
RandomField representing a birthday, i.e. |
class |
BooleanRandomField
A
RandomField representing a Boolean or it's primitive counterpart. |
class |
CalendarRandomField
A
RandomField representing a Calendar between 10 years ago and 10 years in the future. |
class |
CharacterRandomField
Generates letters after a defined config stored in
WordGeneratorConfig . |
class |
CityRandomField
A
RandomField representing a String that should look like a city. |
class |
CollectionRandomField
A
RandomField representing an Collection . |
class |
DateRandomField
A
RandomField representing a Date between 10 years ago and 10 years in
the future. |
class |
DoubleRandomField
A
RandomField representing a Double or its primitive counterpart. |
class |
ElementFromListRandomField<E>
A
RandomField representing an arbitrary object that is filled with a random
list element. |
class |
EnumRandomField<E extends Enum<E>>
A
RandomField representing an object that is filled with a random
Enum 's list element. |
class |
FirstNameRandomField
A
RandomField representing a String that should look like a first name. |
class |
FloatRandomField
A
RandomField representing a Float or its primitive counterpart. |
class |
IntegerRandomField
A
RandomField representing a Integer or its primitive counterpart. |
class |
LastNameRandomField
A
RandomField representing a String that should look like a last name. |
class |
LocalDateRandomField
A
RandomField representing a LocalDate between 10 years ago and 10
years in the future. |
class |
LocalDateTimeRandomField
A
RandomField representing a LocalDateTime between 10 years ago and 10 years in the future. |
class |
LocalTimeRandomField
A
RandomField representing a LocalTime between 0:00 and 24:00 o'clock. |
class |
LongRandomField
A
RandomField representing a Long or its primitive counterpart. |
class |
PatternRandomField
A field where you define a pattern and have a couple of random field to fill the
pattern with.
|
class |
PostalCodeRandomField
A
RandomField representing a String that should look like a postal
code. |
class |
ShortRandomField
A
RandomField representing a Short or its primitive counterpart. |
class |
StreetRandomField
A
RandomField representing a String that should look like a street
(i.e. |
class |
WordRandomField
Generates a word after a defined config stored in
WordGeneratorConfig . |
class |
WordsRandomField
Generates words in sentences and paragraphs after a defined config stored in
WordGeneratorConfig . |
Modifier and Type | Method and Description |
---|---|
void |
PatternRandomField.addComponent(String key,
RandomField randomField)
Adds a component that can be accessed by
PatternRandomField.nextValue() . |
Modifier and Type | Method and Description |
---|---|
void |
PatternRandomField.addComponents(Map<String,RandomField> addedComponents)
Adds components that can be accessed by
PatternRandomField.nextValue() . |
Constructor and Description |
---|
ArrayRandomField(Class<?> elementClass,
RandomField elementRandomField)
Constructor.
|
CollectionRandomField(Supplier<Collection<?>> collectionConstructor,
RandomField elementRandomField)
Constructor.
|
Copyright © 2020. All rights reserved.