Package org.assertj.core.condition
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>>
Join of two or more
Conditions.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidmethod used to calculate the the subclass join descriptionprivate static <T> TcheckNotNullConditions(T conditions) protected 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"private static <T> TnotNull(T condition) Methods inherited from class org.assertj.core.api.Condition
describedAs, matches, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Field Details
-
conditions
Collection<Condition<? super T>> conditions
-
-
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.
-
Join
-
-
Method Details
-
checkNotNullConditions
private static <T> T checkNotNullConditions(T conditions) -
descriptionPrefix
method used to prefix the subclass join description, ex: "all of"- Returns:
- the prefix to use to build the description.
-
calculateDescription
private void calculateDescription()method used to calculate the the subclass join description -
description
Description copied from class:ConditionReturns the description of this condition.- Overrides:
descriptionin classCondition<T>- Returns:
- the description of this condition.
-
notNull
private static <T> T notNull(T condition) -
conditions
Returns the conditions to join.- Returns:
- the conditions to join.
-