Package org.fluentlenium.core.conditions
Class IntegerListConditionsImpl
- java.lang.Object
-
- org.fluentlenium.core.conditions.BaseObjectListConditions<java.lang.Integer,IntegerConditions>
-
- org.fluentlenium.core.conditions.IntegerListConditionsImpl
-
- All Implemented Interfaces:
AbstractIntegerConditions<java.lang.Integer,IntegerConditions>
,Conditions<java.lang.Integer>
,ConditionsObject<java.util.List<java.lang.Integer>>
,IntegerConditions
public class IntegerListConditionsImpl extends BaseObjectListConditions<java.lang.Integer,IntegerConditions> implements IntegerConditions, ConditionsObject<java.util.List<java.lang.Integer>>
Conditions for list of integers.
-
-
Field Summary
-
Fields inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
conditions, conditionsGetter, objectGetter
-
-
Constructor Summary
Constructors Constructor Description IntegerListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,java.lang.Integer> objectGetter)
Creates a new list conditions, with default integer condition implementationIntegerListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,java.lang.Integer> objectGetter, java.util.function.Function<FluentWebElement,IntegerConditions> conditionsGetter)
Creates a new list conditions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 valueIntegerListConditionsImpl
not()
Negates this condition object.boolean
verify(java.util.function.Predicate<java.lang.Integer> predicate)
Verify the predicate against the condition.-
Methods inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
getActualObject
-
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.ConditionsObject
getActualObject
-
-
-
-
Constructor Detail
-
IntegerListConditionsImpl
public IntegerListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,java.lang.Integer> objectGetter, java.util.function.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, java.util.function.Function<FluentWebElement,java.lang.Integer> objectGetter)
Creates a new list conditions, with default integer condition implementation- Parameters:
conditions
- list conditionsobjectGetter
- getter of the underlying object
-
-
Method Detail
-
verify
public boolean verify(java.util.function.Predicate<java.lang.Integer> predicate)
Description copied from class:BaseObjectListConditions
Verify the predicate against the condition.- Specified by:
verify
in interfaceConditions<java.lang.Integer>
- Overrides:
verify
in classBaseObjectListConditions<java.lang.Integer,IntegerConditions>
- Parameters:
predicate
- predicate- Returns:
- true if the predicate is verified
-
not
public IntegerListConditionsImpl not()
Description copied from interface:AbstractIntegerConditions
Negates this condition object.- Specified by:
not
in interfaceAbstractIntegerConditions<java.lang.Integer,IntegerConditions>
- Specified by:
not
in interfaceConditions<java.lang.Integer>
- 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<java.lang.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:AbstractIntegerConditions
Check that this is less than given value- Specified by:
lessThan
in interfaceAbstractIntegerConditions<java.lang.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:AbstractIntegerConditions
Check that this is less than or equal given value- Specified by:
lessThanOrEqualTo
in interfaceAbstractIntegerConditions<java.lang.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:AbstractIntegerConditions
Check that this is greater than given value- Specified by:
greaterThan
in interfaceAbstractIntegerConditions<java.lang.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:AbstractIntegerConditions
Check that this is greater than or equal given value- Specified by:
greaterThanOrEqualTo
in interfaceAbstractIntegerConditions<java.lang.Integer,IntegerConditions>
- Parameters:
value
- the value to compare with- Returns:
- true if greater than or equal, false otherwise
-
-