Package org.assertj.core.condition
Class AnyOf<T>
java.lang.Object
org.assertj.core.api.Condition<T>
org.assertj.core.condition.Join<T>
org.assertj.core.condition.AnyOf<T>
- Type Parameters:
T
- the type of object this condition accepts.
- All Implemented Interfaces:
Descriptable<Condition<T>>
Returns
true
if any of the joined conditions is satisfied.-
Field Summary
Fields inherited from class org.assertj.core.condition.Join
conditions
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.assertj.core.condition.Join
conditions
Methods inherited from class org.assertj.core.api.Condition
as, as, describedAs, describedAs, description
-
Constructor Details
-
AnyOf
-
AnyOf
-
-
Method Details
-
anyOf
Creates a newAnyOf
- Type Parameters:
T
- the type of object the given condition accept.- Parameters:
conditions
- the conditions to evaluate.- Returns:
- the created
AnyOf
. - Throws:
NullPointerException
- if the given array isnull
.NullPointerException
- if any of the elements in the given array isnull
.
-
anyOf
Creates a newAnyOf
- Type Parameters:
T
- the type of object the given condition accept.- Parameters:
conditions
- the conditions to evaluate.- Returns:
- the created
AnyOf
. - Throws:
NullPointerException
- if the given iterable isnull
.NullPointerException
- if any of the elements in the given iterable isnull
.
-
matches
Verifies that the given value satisfies this condition. -
toString
-