Class SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>>
- java.lang.Object
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier<T,R,M,P,THIS>
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>
-
- Type Parameters:
T
- is a type of input valueR
- is a type of result value. Also it is a type of item from iterable.THIS
- this is the self-type. It is used for the method chaining.
- All Implemented Interfaces:
Cloneable
,Supplier<Function<T,R>>
,StepParameterPojo
- Enclosing class:
- SequentialGetStepSupplier<T,R,M,P,THIS extends SequentialGetStepSupplier<T,R,M,P,THIS>>
public abstract static class SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>> extends SequentialGetStepSupplier<T,R,M,P,THIS>
This class is designed to build and supply functions to get desired value using some iterable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
SequentialGetStepSupplier.DefaultGetParameterReader, SequentialGetStepSupplier.DefineCriteriaParameterName, SequentialGetStepSupplier.DefineFromParameterName, SequentialGetStepSupplier.DefineGetImperativeParameterName, SequentialGetStepSupplier.DefinePollingTimeParameterName, SequentialGetStepSupplier.DefineResultDescriptionParameterName, SequentialGetStepSupplier.DefineTimeOutParameterName, SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetListChainedStepSupplier<T,S extends Iterable<R>,M,R,THIS extends SequentialGetStepSupplier.GetListChainedStepSupplier<T,S,M,R,THIS>>, SequentialGetStepSupplier.GetListStepSupplier<T,S extends Iterable<R>,R,THIS extends SequentialGetStepSupplier.GetListStepSupplier<T,S,R,THIS>>, SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS>>
-
-
Field Summary
-
Fields inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
toReport
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GetObjectFromIterableStepSupplier(Function<T,S> originalFunction)
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default THIS
returnIfEntireSize(ItemsCountCondition sizeCondition)
Defines a size condition for entire iterable of found/suitable elements.default THIS
returnItemOfIndex(int size)
Defines index of the target element take from the iterable of found/suitable elements.default THIS
returnOnCondition(String description, Predicate<T> predicate)
Defines a condition for entire set of found/suitable elements.default THIS
returnOnCondition(Criteria<I> condition)
Defines a condition for iterable of found/suitable elements.default THIS
returnOnConditionOnlyNot(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements.default THIS
returnOnConditionOnlyOne(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements.default THIS
returnOnConditionOr(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements.-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
addIgnored, addIgnored, additionalParameters, eraseTimeOut, getCriteria, getDescription, getEndFunction, getFrom, getParameters, makeACopy, onFailure, onStart, onSuccess, pollingInterval, preparePreFunction, setDescription, throwOnNoResult, timeOut, toString, turnReportingOff
-
-
-
-
Method Detail
-
returnItemOfIndex
public default THIS returnItemOfIndex(int size)
Defines index of the target element take from the iterable of found/suitable elements.- Parameters:
size
- index of the target element- Returns:
- self-reference
-
returnIfEntireSize
public default THIS returnIfEntireSize(ItemsCountCondition sizeCondition)
Defines a size condition for entire iterable of found/suitable elements.- Parameters:
sizeCondition
- a size condition for entire iterable- Returns:
- self-reference
-
returnOnCondition
public default THIS returnOnCondition(Criteria<I> condition)
Defines a condition for iterable of found/suitable elements.- Parameters:
condition
- a condition for entire iterable- Returns:
- self-reference
-
returnOnCondition
public default THIS returnOnCondition(String description, Predicate<T> predicate)
Defines a condition for entire set of found/suitable elements.- Parameters:
description
- describes the conditionpredicate
- defines the condition- Returns:
- self-reference
-
returnOnConditionOr
public default THIS returnOnConditionOr(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into OR-expression- Parameters:
condition
- condition for entire set of items- Returns:
- self-reference
-
returnOnConditionOnlyOne
public default THIS returnOnConditionOnlyOne(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into XOR-expression- Parameters:
condition
- condition for entire set of items- Returns:
- self-reference
-
returnOnConditionOnlyNot
public default THIS returnOnConditionOnlyNot(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be inverted- Parameters:
condition
- condition for entire set of items- Returns:
- self-reference
-
-