Java Runtime 3.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
alfa.rt.utils.AlfaRandomizer Class Reference

Public Member Functions

 AlfaRandomizer (IBuilderConfig c)
 
 AlfaRandomizer (List< String > allTypes)
 
 AlfaRandomizer (IBuilderConfig c, List< String > allTypes)
 
boolean randomizable (java.lang.String typeName)
 
random (java.lang.String typeName)
 
randomWithValues (java.lang.String typeName, Map< String, Object > values)
 
randomWithValues (Builder builder)
 
IBuilderConfig codecConfig ()
 

Detailed Description

Utility class that generates a random Alfa object give its type name

Constructor & Destructor Documentation

◆ 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
allTypes

◆ 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
allTypes

Member Function Documentation

◆ random()

T alfa.rt.utils.AlfaRandomizer.random ( java.lang.String typeName)
inline

Create a random version of the object

Parameters
typeNameName 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
typeNameName 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: