Package io.fluentlenium.core.conditions
Class BaseObjectListConditions<T,
C extends Conditions<T>>
java.lang.Object
io.fluentlenium.core.conditions.BaseObjectListConditions<T,
C>
- Type Parameters:
T
- type of underlying object in the listC
- type of conditions
- All Implemented Interfaces:
ConditionsObject<List<T>>
- Direct Known Subclasses:
IntegerListConditionsImpl
,RectangleListConditionsImpl
,StringListConditionsImpl
public class BaseObjectListConditions<T,C extends Conditions<T>>
extends Object
implements ConditionsObject<List<T>>
Base condition for list of objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Conditions<FluentWebElement>
protected final Function<FluentWebElement,
C> protected final Function<FluentWebElement,
T> -
Constructor Summary
ConstructorsConstructorDescriptionBaseObjectListConditions
(Conditions<FluentWebElement> conditions, Function<FluentWebElement, T> objectGetter, Function<FluentWebElement, C> conditionsGetter) Creates a new list conditions -
Method Summary
-
Field Details
-
conditions
-
objectGetter
-
conditionsGetter
-
-
Constructor Details
-
BaseObjectListConditions
public BaseObjectListConditions(Conditions<FluentWebElement> conditions, Function<FluentWebElement, T> objectGetter, Function<FluentWebElement, C> conditionsGetter) Creates a new list conditions- Parameters:
conditions
- object conditionsobjectGetter
- getter of the underlying objectconditionsGetter
- getter of the underlying object conditions
-
-
Method Details
-
getActualObject
Description copied from interface:ConditionsObject
Get the actual object.- Specified by:
getActualObject
in interfaceConditionsObject<T>
- Returns:
- actual object on which conditions are performed.
-
verify
Verify the predicate against the condition.- Parameters:
predicate
- predicate- Returns:
- true if the predicate is verified
-