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>>
- Direct Known Subclasses:
AllOf,AnyOf,NestableCondition
public abstract class Join<T> extends Condition<T>
Join of two or mores.Condition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.assertj.core.api.Condition
Condition.Status
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Collection<Condition<? super T>>conditionsprotected static java.lang.StringPREFIX_DELIMITERprotected static java.lang.StringSUFFIX_DELIMITER
-
Constructor Summary
Constructors Modifier Constructor Description protectedJoin(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a new.JoinprivateJoin(java.util.stream.Stream<? extends Condition<? super T>> stream)protectedJoin(Condition<? super T>... conditions)Creates a new.Join
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private voidcalculateDescription()method used to calculate the subclass join descriptionprivate static <T> TcheckNotNullConditions(T conditions)DescriptionconditionDescriptionWithStatus(T actual)Returns the description of this condition with its status failed or success.java.util.Collection<Condition<? super T>>conditions()Returns the conditions to join.Descriptiondescription()Returns the description of this condition.abstract java.lang.StringdescriptionPrefix()method 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, status, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
-
-
-
Field Detail
-
SUFFIX_DELIMITER
protected static final java.lang.String SUFFIX_DELIMITER
- See Also:
- Constant Field Values
-
PREFIX_DELIMITER
protected static final java.lang.String PREFIX_DELIMITER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Join
@SafeVarargs protected Join(Condition<? super T>... conditions)
Creates a new.Join- Parameters:
conditions- the conditions to join.- Throws:
java.lang.NullPointerException- if the given array isnull.java.lang.NullPointerException- if any of the elements in the given array isnull.
-
Join
protected Join(java.lang.Iterable<? extends Condition<? super T>> conditions)
Creates a new.Join- Parameters:
conditions- the conditions to join.- Throws:
java.lang.NullPointerException- if the given iterable isnull.java.lang.NullPointerException- if any of the elements in the given iterable isnull.
-
-
Method Detail
-
checkNotNullConditions
private static <T> T checkNotNullConditions(T conditions)
-
descriptionPrefix
public abstract java.lang.String 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 subclass join description
-
description
public Description description()
Description copied from class:ConditionReturns the description of this condition.- Overrides:
descriptionin classCondition<T>- Returns:
- the description of this condition.
-
conditionDescriptionWithStatus
public Description conditionDescriptionWithStatus(T actual)
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.
-
notNull
private static <T> T notNull(T condition)
-
-