Package org.fluentlenium.core.conditions
Class BaseObjectListConditions<T,C extends Conditions<T>>
- java.lang.Object
-
- org.fluentlenium.core.conditions.BaseObjectListConditions<T,C>
-
- Type Parameters:
T- type of underlying object in the listC- type of conditions
- All Implemented Interfaces:
ConditionsObject<java.util.List<T>>
- Direct Known Subclasses:
IntegerListConditionsImpl,RectangleListConditionsImpl,StringListConditionsImpl
public class BaseObjectListConditions<T,C extends Conditions<T>> extends java.lang.Object implements ConditionsObject<java.util.List<T>>
Base condition for list of objects
-
-
Field Summary
Fields Modifier and Type Field Description protected Conditions<FluentWebElement>conditionsprotected java.util.function.Function<FluentWebElement,C>conditionsGetterprotected java.util.function.Function<FluentWebElement,T>objectGetter
-
Constructor Summary
Constructors Constructor Description BaseObjectListConditions(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,T> objectGetter, java.util.function.Function<FluentWebElement,C> conditionsGetter)Creates a new list conditions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>getActualObject()Get the actual object.booleanverify(java.util.function.Predicate<T> predicate)Verify the predicate against the condition.
-
-
-
Field Detail
-
conditions
protected Conditions<FluentWebElement> conditions
-
objectGetter
protected final java.util.function.Function<FluentWebElement,T> objectGetter
-
conditionsGetter
protected final java.util.function.Function<FluentWebElement,C extends Conditions<T>> conditionsGetter
-
-
Constructor Detail
-
BaseObjectListConditions
public BaseObjectListConditions(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,T> objectGetter, java.util.function.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 Detail
-
getActualObject
public java.util.List<T> getActualObject()
Description copied from interface:ConditionsObjectGet the actual object.- Specified by:
getActualObjectin interfaceConditionsObject<T>- Returns:
- actual object on which conditions are performed.
-
verify
public boolean verify(java.util.function.Predicate<T> predicate)
Verify the predicate against the condition.- Parameters:
predicate- predicate- Returns:
- true if the predicate is verified
-
-