Package ru.objectsfill.types.array
Class FillArray
java.lang.Object
ru.objectsfill.types.array.FillArray
Creates and fills arrays (both reference and primitive types) with randomly generated values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Object[]createArray(Class<T> fieldType, Fill fill) Creates an array of the specified type and fills it with generated values.<T> Object[]createArray(Class<T> fieldType, Fill fill, Field field) Creates an array of the specified type and fills it with generated values.
-
Constructor Details
-
FillArray
public FillArray()
-
-
Method Details
-
createArray
Creates an array of the specified type and fills it with generated values.- Type Parameters:
T- the component type- Parameters:
fieldType- the array or component typefill- the generation parameters- Returns:
- the filled array
-
createArray
Creates an array of the specified type and fills it with generated values. Dispatches to specialized handling for primitive arrays or reference arrays.- Type Parameters:
T- the component type- Parameters:
fieldType- the array or component typefill- the generation parametersfield- the field for which the array is generated (may benull)- Returns:
- the filled array
-