Class Fill

java.lang.Object
ru.objectsfill.object_param.Fill

public final class Fill extends Object
The Fill class is used to provide information for populating POJO (Plain Old Java Object) classes with random data.
  • Method Details

    • getGenericType

      public Map<String,Type> getGenericType()
      Gets the generic types.
      Returns:
      The generic types.
    • setDeep

      public void setDeep(Integer deep)
      Sets the depth limit.
      Parameters:
      deep - The depth limit.
    • setGenericType

      public void setGenericType(Map<String,Type> genericType)
      Sets the generic types.
      Parameters:
      genericType - The generic types.
    • setGenericType

      public void setGenericType(String genericName, Type genericType)
      Sets a specific generic type.
      Parameters:
      genericName - The name of the generic type.
      genericType - The specific generic type.
    • getClazz

      public Class<?> getClazz()
      Gets the class of the object.
      Returns:
      The class of the object.
    • getObjectz

      public Object getObjectz()
      Gets the object to be filled.
      Returns:
      The object to be filled.
    • getExcludedField

      public List<String> getExcludedField()
      Gets the names of excluded fields.
      Returns:
      The names of excluded fields.
    • getDeep

      public Integer getDeep()
      Gets the depth limit.
      Returns:
      The depth limit.
    • getCollectionSize

      public Integer getCollectionSize()
      Gets the collection size.
      Returns:
      The collection size.
    • getValueLength

      public Integer getValueLength()
      Gets the value length.
      Returns:
      The value length.
    • object

      public static Fill.FillBuilder object(Object object)
      Starts building a Fill object with the specified object.
      Parameters:
      object - The object to be filled.
      Returns:
      A FillBuilder instance.
    • object

      public static Fill.FillBuilder object(Class<?> clazz)
      Starts building a Fill object with the specified class.
      Parameters:
      clazz - The class to be created and filled.
      Returns:
      A FillBuilder instance.