Package io.fluentlenium.core.conditions
Class IntegerListConditionsImpl
java.lang.Object
io.fluentlenium.core.conditions.BaseObjectListConditions<Integer,IntegerConditions>
io.fluentlenium.core.conditions.IntegerListConditionsImpl
- All Implemented Interfaces:
AbstractIntegerConditions<Integer,,IntegerConditions> Conditions<Integer>,ConditionsObject<List<Integer>>,IntegerConditions
public class IntegerListConditionsImpl
extends BaseObjectListConditions<Integer,IntegerConditions>
implements IntegerConditions, ConditionsObject<List<Integer>>
Conditions for list of integers.
-
Field Summary
Fields inherited from class io.fluentlenium.core.conditions.BaseObjectListConditions
conditions, conditionsGetter, objectGetter -
Constructor Summary
ConstructorsConstructorDescriptionIntegerListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, Integer> objectGetter) Creates a new list conditions, with default integer condition implementationIntegerListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, Integer> objectGetter, Function<FluentWebElement, IntegerConditions> conditionsGetter) Creates a new list conditions -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalTo(int value) Check that this is equal to given valuebooleangreaterThan(int value) Check that this is greater than given valuebooleangreaterThanOrEqualTo(int value) Check that this is greater than or equal given valuebooleanlessThan(int value) Check that this is less than given valuebooleanlessThanOrEqualTo(int value) Check that this is less than or equal given valuenot()Negates this condition object.booleanVerify the predicate against the condition.Methods inherited from class io.fluentlenium.core.conditions.BaseObjectListConditions
getActualObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluentlenium.core.conditions.ConditionsObject
getActualObject
-
Constructor Details
-
IntegerListConditionsImpl
public IntegerListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, Integer> objectGetter, Function<FluentWebElement, IntegerConditions> conditionsGetter) Creates a new list conditions- Parameters:
conditions- list conditionsobjectGetter- getter of the underlying objectconditionsGetter- getter of the underlying conditions
-
IntegerListConditionsImpl
public IntegerListConditionsImpl(Conditions<FluentWebElement> conditions, Function<FluentWebElement, Integer> objectGetter) Creates a new list conditions, with default integer condition implementation- Parameters:
conditions- list conditionsobjectGetter- getter of the underlying object
-
-
Method Details
-
verify
Description copied from class:BaseObjectListConditionsVerify the predicate against the condition.- Specified by:
verifyin interfaceConditions<Integer>- Overrides:
verifyin classBaseObjectListConditions<Integer,IntegerConditions> - Parameters:
predicate- predicate- Returns:
- true if the predicate is verified
-
not
Description copied from interface:AbstractIntegerConditionsNegates this condition object.- Specified by:
notin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Specified by:
notin interfaceConditions<Integer>- Returns:
- a negated condition object
-
equalTo
public boolean equalTo(int value) Description copied from interface:AbstractIntegerConditionsCheck that this is equal to given value- Specified by:
equalToin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Parameters:
value- the value to compare with- Returns:
- true if is equals, false otherwise
-
lessThan
public boolean lessThan(int value) Description copied from interface:AbstractIntegerConditionsCheck that this is less than given value- Specified by:
lessThanin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Parameters:
value- the value to compare with- Returns:
- true if less than, false otherwise
-
lessThanOrEqualTo
public boolean lessThanOrEqualTo(int value) Description copied from interface:AbstractIntegerConditionsCheck that this is less than or equal given value- Specified by:
lessThanOrEqualToin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Parameters:
value- the value to compare with- Returns:
- true if less than or equal, false otherwise
-
greaterThan
public boolean greaterThan(int value) Description copied from interface:AbstractIntegerConditionsCheck that this is greater than given value- Specified by:
greaterThanin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Parameters:
value- the value to compare with- Returns:
- true if greater than, false otherwise
-
greaterThanOrEqualTo
public boolean greaterThanOrEqualTo(int value) Description copied from interface:AbstractIntegerConditionsCheck that this is greater than or equal given value- Specified by:
greaterThanOrEqualToin interfaceAbstractIntegerConditions<Integer,IntegerConditions> - Parameters:
value- the value to compare with- Returns:
- true if greater than or equal, false otherwise
-