Interface MultipleObjectPropertySupplier<R,T extends Supplier<R>>
-
- Type Parameters:
R- is a type of of a value of resulted list.T- is a type of aSupplierimplementor.
- All Superinterfaces:
Consumer<Class<? extends T>[]>,PropertySupplier<List<R>,Class<? extends T>[]>,Supplier<List<R>>
public interface MultipleObjectPropertySupplier<R,T extends Supplier<R>> extends PropertySupplier<List<R>,Class<? extends T>[]>
This interface is designed to read properties and return lists of instances. Each instance is created by by invocation ofSupplier.get(). Resulted list of objects is used as value of the property. The correct format of the property value is a comma-separated string that consists of fully qualified names of classes ofSupplier.NOTE!
Implementor ofSuppliershould have default constructor or it may have not any declared constructor.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<R>parse(String s)default StringreadValuesToSet(Class<? extends T>... value)Converts object to string value of the property-
Methods inherited from interface ru.tinkoff.qa.neptune.core.api.properties.PropertySupplier
accept, get, getName, returnIfNull
-
-
-
-
Method Detail
-
readValuesToSet
default String readValuesToSet(Class<? extends T>... value)
Description copied from interface:PropertySupplierConverts object to string value of the property- Specified by:
readValuesToSetin interfacePropertySupplier<R,T extends Supplier<R>>- Parameters:
value- to set as a value of the property- Returns:
- value converted to String
-
-