Package org.fluentlenium.core.conditions
Class DynamicIntegerConditionsImpl
- java.lang.Object
-
- org.fluentlenium.core.conditions.AbstractObjectConditions<java.util.List<? extends FluentWebElement>>
-
- org.fluentlenium.core.conditions.DynamicIntegerConditionsImpl
-
- All Implemented Interfaces:
AbstractIntegerConditions<java.util.List<? extends FluentWebElement>,ListIntegerConditions>,Conditions<java.util.List<? extends FluentWebElement>>,ConditionsObject<java.util.List<? extends FluentWebElement>>,ListIntegerConditions
public class DynamicIntegerConditionsImpl extends AbstractObjectConditions<java.util.List<? extends FluentWebElement>> implements ListIntegerConditions
Conditions for integer
-
-
Field Summary
-
Fields inherited from class org.fluentlenium.core.conditions.AbstractObjectConditions
negation, object
-
-
Constructor Summary
Constructors Constructor Description DynamicIntegerConditionsImpl(java.util.function.Supplier<java.util.List<? extends FluentWebElement>> supplier, boolean negation)Creates a new conditions object on integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalTo(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 valueprotected AbstractObjectConditions<java.util.List<? extends FluentWebElement>>newInstance(boolean negationValue)Creates a new instance of this condition.DynamicIntegerConditionsImplnot()Negates this condition object.-
Methods inherited from class org.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 org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Constructor Detail
-
DynamicIntegerConditionsImpl
public DynamicIntegerConditionsImpl(java.util.function.Supplier<java.util.List<? extends FluentWebElement>> supplier, boolean negation)
Creates a new conditions object on integer.- Parameters:
supplier- underlying listnegation- negation value
-
-
Method Detail
-
newInstance
protected AbstractObjectConditions<java.util.List<? extends FluentWebElement>> newInstance(boolean negationValue)
Description copied from class:AbstractObjectConditionsCreates a new instance of this condition.- Specified by:
newInstancein classAbstractObjectConditions<java.util.List<? extends FluentWebElement>>- Parameters:
negationValue- negation value- Returns:
- new instance of this condition
-
not
public DynamicIntegerConditionsImpl not()
Description copied from interface:ConditionsNegates this condition object.- Specified by:
notin interfaceAbstractIntegerConditions<java.util.List<? extends FluentWebElement>,ListIntegerConditions>- Specified by:
notin interfaceConditions<java.util.List<? extends FluentWebElement>>- Overrides:
notin classAbstractObjectConditions<java.util.List<? extends FluentWebElement>>- 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<java.util.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:AbstractIntegerConditionsCheck that this is less than given value- Specified by:
lessThanin interfaceAbstractIntegerConditions<java.util.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:AbstractIntegerConditionsCheck that this is less than or equal given value- Specified by:
lessThanOrEqualToin interfaceAbstractIntegerConditions<java.util.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:AbstractIntegerConditionsCheck that this is greater than given value- Specified by:
greaterThanin interfaceAbstractIntegerConditions<java.util.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:AbstractIntegerConditionsCheck that this is greater than or equal given value- Specified by:
greaterThanOrEqualToin interfaceAbstractIntegerConditions<java.util.List<? extends FluentWebElement>,ListIntegerConditions>- Parameters:
value- the value to compare with- Returns:
- true if greater than or equal, false otherwise
-
-