Package io.fluentlenium.core.conditions
Class AbstractObjectConditions<T>
java.lang.Object
io.fluentlenium.core.conditions.AbstractObjectConditions<T>
- Type Parameters:
T
- type of condition
- All Implemented Interfaces:
Conditions<T>
,ConditionsObject<T>
- Direct Known Subclasses:
DynamicIntegerConditionsImpl
,IntegerConditionsImpl
,RectangleConditionsImpl
,StringConditionsImpl
,WebElementConditions
public abstract class AbstractObjectConditions<T>
extends Object
implements Conditions<T>, ConditionsObject<T>
Abstract implementation supported negation and instantiation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractObjectConditions
(T object) Initialize the conditions with given object.AbstractObjectConditions
(T object, boolean negation) Initialize the conditions with given object -
Method Summary
Modifier and TypeMethodDescriptionGet the actual object.protected abstract AbstractObjectConditions<T>
newInstance
(boolean negationValue) Creates a new instance of this condition.not()
Negates this condition object.boolean
Check that the given predicate is verified against this condition object.
-
Field Details
-
object
-
negation
protected boolean negation
-
-
Constructor Details
-
AbstractObjectConditions
Initialize the conditions with given object.- Parameters:
object
- underlying object
-
AbstractObjectConditions
Initialize the conditions with given object- Parameters:
object
- underlying objectnegation
- negation value
-
-
Method Details
-
verify
Description copied from interface:Conditions
Check that the given predicate is verified against this condition object.- Specified by:
verify
in interfaceConditions<T>
- Parameters:
predicate
- predicate to check- Returns:
- true if the predicated is checked, false otherwise
-
getActualObject
Description copied from interface:ConditionsObject
Get the actual object.- Specified by:
getActualObject
in interfaceConditionsObject<T>
- Returns:
- actual object on which conditions are performed.
-
newInstance
Creates a new instance of this condition.- Parameters:
negationValue
- negation value- Returns:
- new instance of this condition
-
not
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceConditions<T>
- Returns:
- a negated condition object
-