Package org.assertj.core.condition
Class Join<T>
- java.lang.Object
-
- org.assertj.core.api.Condition<T>
-
- org.assertj.core.condition.Join<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Collection<Condition<? super T>>
conditions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
calculateDescription()
method used to calculate the the subclass join descriptionprivate static <T> T
checkNotNullConditions(T conditions)
protected Collection<Condition<? super T>>
conditions()
Returns the conditions to join.Description
description()
Returns the description of this condition.abstract String
descriptionPrefix()
method used to prefix the subclass join description, ex: "all of"private static <T> T
notNull(T condition)
-
Methods inherited from class org.assertj.core.api.Condition
describedAs, matches, 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
-
-
-
-
Field Detail
-
conditions
Collection<Condition<? super T>> conditions
-
-
Constructor Detail
-
Join
@SafeVarargs protected Join(Condition<? super T>... conditions)
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
protected Join(Iterable<? extends Condition<? super T>> conditions)
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 Detail
-
checkNotNullConditions
private static <T> T checkNotNullConditions(T conditions)
-
descriptionPrefix
public abstract 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 the subclass join description
-
description
public Description description()
Description copied from class:Condition
Returns the description of this condition.- Overrides:
description
in classCondition<T>
- Returns:
- the description of this condition.
-
notNull
private static <T> T notNull(T condition)
-
conditions
protected final Collection<Condition<? super T>> conditions()
Returns the conditions to join.- Returns:
- the conditions to join.
-
-