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 aSupplier
implementor.
- 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 ofSupplier
should 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 String
readValuesToSet(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:PropertySupplier
Converts object to string value of the property- Specified by:
readValuesToSet
in interfacePropertySupplier<R,T extends Supplier<R>>
- Parameters:
value
- to set as a value of the property- Returns:
- value converted to String
-
-