|
| AlfaRandomizer (IBuilderConfig c) |
|
| AlfaRandomizer (List< String > allTypes) |
|
| AlfaRandomizer (IBuilderConfig c, List< String > allTypes) |
|
boolean | randomizable (java.lang.String typeName) |
|
T | random (java.lang.String typeName) |
|
T | randomWithValues (java.lang.String typeName, Map< String, Object > values) |
|
T | randomWithValues (Builder builder) |
|
IBuilderConfig | codecConfig () |
|
Utility class that generates a random Alfa object give its type name
◆ AlfaRandomizer() [1/2]
alfa.rt.utils.AlfaRandomizer.AlfaRandomizer |
( |
List< String > | allTypes | ) |
|
|
inline |
Create a randomiser with list of permitted type to be used as trait implementations to be used when creating a random trait.
- Parameters
-
◆ AlfaRandomizer() [2/2]
alfa.rt.utils.AlfaRandomizer.AlfaRandomizer |
( |
IBuilderConfig | c, |
|
|
List< String > | allTypes ) |
|
inline |
Create a randomiser with list of permitted type to be used as trait implementations to be used when creating a random trait.
- Parameters
-
◆ random()
T alfa.rt.utils.AlfaRandomizer.random |
( |
java.lang.String | typeName | ) |
|
|
inline |
Create a random version of the object
- Parameters
-
typeName | Name of Alfa type |
<T> | Type parameter for AlfaObject |
- Returns
- Instance of generated object
◆ randomizable()
boolean alfa.rt.utils.AlfaRandomizer.randomizable |
( |
java.lang.String | typeName | ) |
|
|
inline |
Is it possible to randomise the given type
- Parameters
-
typeName | Name of Alfa type |
- Returns
- True if a random instance of the typename can be created
The documentation for this class was generated from the following file:
- src/main/java/alfa/rt/utils/AlfaRandomizer.java