Package org.fest.assertions
Class Condition<T>
java.lang.Object
org.fest.assertions.Condition<T>
- Type Parameters:
T
- the type ofObject
this condition accepts.
Understands a condition to be met by a given
Object
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
description
-
-
Constructor Details
-
Method Details
-
as
Sets the description of this condition.- Parameters:
newDescription
- the description to set.- Returns:
- this condition.
-
addDescriptionTo
-
description
Returns the description of this condition, if any.- Returns:
- the description of this condition.
-
matches
Verifies that the given value satisfies this condition.- Parameters:
value
- the value to verify.- Returns:
true
if the given value satisfies this condition,false
otherwise.
-