Package ru.objectsfill.object_param
Class Extend
java.lang.Object
ru.objectsfill.object_param.Extend
class with parameters for field
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classbuilder for extend class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstart builder with namestart builder with nameClass<?>getClazz()Gets class type for extend.Gets the collection size.Gets mutation function.Gets the field name.Gets the value length.wrapByFunction(UnaryOperator<Object> singleChangeFunction) start function builder
-
Constructor Details
-
Extend
public Extend(String fieldName, Integer collectionSize, Integer valueLength, UnaryOperator<Object> singleChangeFunction, Class<?> clazz) constructor for builder- Parameters:
fieldName- field namecollectionSize- sizevalueLength- lengthclazz- class type for extendsingleChangeFunction- mutation function
-
-
Method Details
-
getClazz
Gets class type for extend.- Returns:
- class type for extend.
-
getFieldChangeFunction
Gets mutation function.- Returns:
- mutation function.
-
getFieldName
Gets the field name.- Returns:
- field name.
-
getCollectionSize
Gets the collection size.- Returns:
- The collection size.
-
getValueLength
Gets the value length.- Returns:
- The value length.
-
field
start builder with name- Parameters:
fieldName- set field name- Returns:
- fill field parameter builder.
-
clazz
start builder with name- Parameters:
clazz- set class type- Returns:
- fill field parameter builder.
-
wrapByFunction
public static Extend.FillFieldParametersBuilder wrapByFunction(UnaryOperator<Object> singleChangeFunction) start function builder- Parameters:
singleChangeFunction- mutation function- Returns:
- fill field parameter builder.
-