T - type of conditionpublic abstract class AbstractObjectConditions<T> extends java.lang.Object implements Conditions<T>, ConditionsObject<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
negation |
protected T |
object |
| Constructor and Description |
|---|
AbstractObjectConditions(T object)
Initialize the conditions with given object.
|
AbstractObjectConditions(T object,
boolean negation)
Initialize the conditions with given object
|
| Modifier and Type | Method and Description |
|---|---|
T |
getActualObject()
Get the actual object.
|
protected abstract AbstractObjectConditions<T> |
newInstance(boolean negationValue)
Creates a new instance of this condition.
|
AbstractObjectConditions<T> |
not()
Negates this condition object.
|
boolean |
verify(java.util.function.Predicate<T> predicate)
Check that the given predicate is verified against this condition object.
|
protected final T object
protected boolean negation
public AbstractObjectConditions(T object)
object - underlying objectpublic AbstractObjectConditions(T object, boolean negation)
object - underlying objectnegation - negation valuepublic boolean verify(java.util.function.Predicate<T> predicate)
Conditionsverify in interface Conditions<T>predicate - predicate to checkpublic T getActualObject()
ConditionsObjectgetActualObject in interface ConditionsObject<T>protected abstract AbstractObjectConditions<T> newInstance(boolean negationValue)
negationValue - negation valuepublic AbstractObjectConditions<T> not()
Conditionsnot in interface Conditions<T>Copyright © 2018 FluentLenium. All Rights Reserved.