Package ru.objectsfill.object_param
Class Fill
java.lang.Object
ru.objectsfill.object_param.Fill
The Fill class is used to provide information for populating POJO (Plain Old Java Object) classes with random data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe FillBuilder class provides a fluent interface for building a Fill object. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getClazz()Gets the class of the object.Gets the collection size.getDeep()Gets the depth limit.Gets the names of excluded fields.Gets the generic types.Gets the object to be filled.Gets the value length.static Fill.FillBuilderStarts building a Fill object with the specified class.static Fill.FillBuilderStarts building a Fill object with the specified object.voidSets the depth limit.voidsetGenericType(String genericName, Type genericType) Sets a specific generic type.voidsetGenericType(Map<String, Type> genericType) Sets the generic types.
-
Method Details
-
getGenericType
Gets the generic types.- Returns:
- The generic types.
-
setDeep
Sets the depth limit.- Parameters:
deep- The depth limit.
-
setGenericType
Sets the generic types.- Parameters:
genericType- The generic types.
-
setGenericType
Sets a specific generic type.- Parameters:
genericName- The name of the generic type.genericType- The specific generic type.
-
getClazz
Gets the class of the object.- Returns:
- The class of the object.
-
getObjectz
Gets the object to be filled.- Returns:
- The object to be filled.
-
getExcludedField
Gets the names of excluded fields.- Returns:
- The names of excluded fields.
-
getDeep
Gets the depth limit.- Returns:
- The depth limit.
-
getCollectionSize
Gets the collection size.- Returns:
- The collection size.
-
getValueLength
Gets the value length.- Returns:
- The value length.
-
object
Starts building a Fill object with the specified object.- Parameters:
object- The object to be filled.- Returns:
- A FillBuilder instance.
-
object
Starts building a Fill object with the specified class.- Parameters:
clazz- The class to be created and filled.- Returns:
- A FillBuilder instance.
-