Package io.fluentlenium.core.conditions
Class DynamicIntegerConditionsImpl
java.lang.Object
io.fluentlenium.core.conditions.AbstractObjectConditions<List<? extends FluentWebElement>>
io.fluentlenium.core.conditions.DynamicIntegerConditionsImpl
- All Implemented Interfaces:
AbstractIntegerConditions<List<? extends FluentWebElement>,
,ListIntegerConditions> Conditions<List<? extends FluentWebElement>>
,ConditionsObject<List<? extends FluentWebElement>>
,ListIntegerConditions
public class DynamicIntegerConditionsImpl
extends AbstractObjectConditions<List<? extends FluentWebElement>>
implements ListIntegerConditions
Conditions for integer
-
Field Summary
Fields inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
negation, object
-
Constructor Summary
ConstructorDescriptionDynamicIntegerConditionsImpl
(Supplier<List<? extends FluentWebElement>> supplier, boolean negation) Creates a new conditions object on integer. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalTo
(int value) Check that this is equal to given valueboolean
greaterThan
(int value) Check that this is greater than given valueboolean
greaterThanOrEqualTo
(int value) Check that this is greater than or equal given valueboolean
lessThan
(int value) Check that this is less than given valueboolean
lessThanOrEqualTo
(int value) Check that this is less than or equal given valueprotected AbstractObjectConditions<List<? extends FluentWebElement>>
newInstance
(boolean negationValue) Creates a new instance of this condition.not()
Negates this condition object.Methods inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
getActualObject, verify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
Constructor Details
-
DynamicIntegerConditionsImpl
public DynamicIntegerConditionsImpl(Supplier<List<? extends FluentWebElement>> supplier, boolean negation) Creates a new conditions object on integer.- Parameters:
supplier
- underlying listnegation
- negation value
-
-
Method Details
-
newInstance
protected AbstractObjectConditions<List<? extends FluentWebElement>> newInstance(boolean negationValue) Description copied from class:AbstractObjectConditions
Creates a new instance of this condition.- Specified by:
newInstance
in classAbstractObjectConditions<List<? extends FluentWebElement>>
- Parameters:
negationValue
- negation value- Returns:
- new instance of this condition
-
not
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - Specified by:
not
in interfaceConditions<List<? extends FluentWebElement>>
- Overrides:
not
in classAbstractObjectConditions<List<? extends FluentWebElement>>
- Returns:
- a negated condition object
-
equalTo
public boolean equalTo(int value) Description copied from interface:AbstractIntegerConditions
Check that this is equal to given value- Specified by:
equalTo
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - Parameters:
value
- the value to compare with- Returns:
- true if is equals, false otherwise
-
lessThan
public boolean lessThan(int value) Description copied from interface:AbstractIntegerConditions
Check that this is less than given value- Specified by:
lessThan
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - Parameters:
value
- the value to compare with- Returns:
- true if less than, false otherwise
-
lessThanOrEqualTo
public boolean lessThanOrEqualTo(int value) Description copied from interface:AbstractIntegerConditions
Check that this is less than or equal given value- Specified by:
lessThanOrEqualTo
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - 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:AbstractIntegerConditions
Check that this is greater than given value- Specified by:
greaterThan
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - Parameters:
value
- the value to compare with- Returns:
- true if greater than, false otherwise
-
greaterThanOrEqualTo
public boolean greaterThanOrEqualTo(int value) Description copied from interface:AbstractIntegerConditions
Check that this is greater than or equal given value- Specified by:
greaterThanOrEqualTo
in interfaceAbstractIntegerConditions<List<? extends FluentWebElement>,
ListIntegerConditions> - Parameters:
value
- the value to compare with- Returns:
- true if greater than or equal, false otherwise
-