Class Join<T>
java.lang.Object
org.assertj.core.api.Condition<T>
org.assertj.core.condition.Join<T>
- Type Parameters:
T- the type of object this condition accepts.
- All Implemented Interfaces:
Descriptable<Condition<T>>
- Direct Known Subclasses:
AllOf, AnyOf, NestableCondition
-
Nested Class Summary
Nested classes/interfaces inherited from class Condition
Condition.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconditionDescriptionWithStatus(T actual) Returns the description of this condition with its status failed or success.final Collection<Condition<? super T>> Returns the conditions to join.Returns the description of this condition.abstract Stringmethod used to prefix the subclass join description, ex: "all of"Methods inherited from class Condition
describedAs, matches, status, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Descriptable
as, as, as, describedAs, describedAs
-
Field Details
-
SUFFIX_DELIMITER
- See Also:
-
PREFIX_DELIMITER
- See Also:
-
-
Constructor Details
-
Join
Creates a new.Join- Parameters:
conditions- the conditions to join.- Throws:
NullPointerException- if the given array isnull.NullPointerException- if any of the elements in the given array isnull.
-
Join
Creates a new.Join- Parameters:
conditions- the conditions to join.- Throws:
NullPointerException- if the given iterable isnull.NullPointerException- if any of the elements in the given iterable isnull.
-
-
Method Details
-
descriptionPrefix
method used to prefix the subclass join description, ex: "all of"- Returns:
- the prefix to use to build the description.
-
description
Description copied from class:ConditionReturns the description of this condition.- Overrides:
descriptionin classCondition<T>- Returns:
- the description of this condition.
-
conditionDescriptionWithStatus
Description copied from class:ConditionReturns the description of this condition with its status failed or success.- Overrides:
conditionDescriptionWithStatusin classCondition<T>- Parameters:
actual- the instance to evaluate the condition status against.- Returns:
- the description of this condition with its status.
-
conditions
Returns the conditions to join.- Returns:
- the conditions to join.
-