Top Description Fields Constructors Methods
org.assertj.core.condition

public abstract Class Join<T>

extends Condition<T>
Class Inheritance
Known Direct Subclasses
org.assertj.core.condition.NestableCondition, org.assertj.core.condition.AllOf, org.assertj.core.condition.AnyOf
Type Parameters
<T>
the type of object this condition accepts.
Static Imports
java.util.Collections.unmodifiableCollection, .Objects.requireNonNull, java.util.stream.Collectors.toList

Join of two or more Conditions.
Authors
Yvonne Wang, Mikhail Mazursky

Field Summary

Modifier and TypeField and Description
pack-priv Collection<Condition<? super T>>
protected static final String
protected static final String

Constructor Summary

AccessConstructor and Description
protected
Join(Condition<? super T>...
the conditions to join.
conditions
)

Creates a new Join.

protected
Join(Iterable<? extends Condition<? super T>>
the conditions to join.
conditions
)

Creates a new Join.

private
Join(Stream<? extends Condition<? super T>> stream)

Method Summary

Modifier and TypeMethod and Description
private void
calculateDescription()

method used to calculate the subclass join description

private static <T> T
checkNotNullConditions(T conditions)

public Description
conditionDescriptionWithStatus(T
the instance to evaluate the condition status against.
actual
)

Overrides org.assertj.core.api.Condition.conditionDescriptionWithStatus.

Returns the description of this condition with its status failed or success.
public final Collection<Condition<? super T>>

Returns:

the conditions to join.
conditions
()

Returns the conditions to join.

public Description
description()

Overrides org.assertj.core.api.Condition.description.

Returns the description of this condition.
public abstract String

Returns:

the prefix to use to build the description.
descriptionPrefix
()

method used to prefix the subclass join description, ex: "all of"

private static <T> T
notNull(T condition)

Inherited from org.assertj.core.api.Condition:
describedAsmatchesstatustoString

Field Detail

conditionsback to summary
pack-priv Collection<Condition<? super T>> conditions
Annotations
@VisibleForTesting
PREFIX_DELIMITERback to summary
protected static final String PREFIX_DELIMITER
SUFFIX_DELIMITERback to summary
protected static final String SUFFIX_DELIMITER

Constructor Detail

Joinback to summary
protected Join(Condition<? super T>... conditions)

Creates a new Join.

Parameters
conditions:Condition<? super T>[]

the conditions to join.

Annotations
@SafeVarargs
Exceptions
NullPointerException:
  • if the given array is null.
  • if any of the elements in the given array is null.
Joinback to summary
protected Join(Iterable<? extends Condition<? super T>> conditions)

Creates a new Join.

Parameters
conditions:Iterable<? extends Condition<? super T>>

the conditions to join.

Exceptions
NullPointerException:
  • if the given iterable is null.
  • if any of the elements in the given iterable is null.
Joinback to summary
private Join(Stream<? extends Condition<? super T>> stream)

Method Detail

calculateDescriptionback to summary
private void calculateDescription()

method used to calculate the subclass join description

checkNotNullConditionsback to summary
private static <T> T checkNotNullConditions(T conditions)
conditionDescriptionWithStatusback to summary
public Description conditionDescriptionWithStatus(T actual)

Overrides org.assertj.core.api.Condition.conditionDescriptionWithStatus.

Doc from org.assertj.core.api.Condition.conditionDescriptionWithStatus.

Returns the description of this condition with its status failed or success.

Parameters
actual:T

the instance to evaluate the condition status against.

Returns:Description

the description of this condition with its status.

Annotations
@Override
conditionsback to summary
public final Collection<Condition<? super T>> conditions()

Returns the conditions to join.

Returns:Collection<Condition<? super T>>

the conditions to join.

descriptionback to summary
public Description description()

Overrides org.assertj.core.api.Condition.description.

Doc from org.assertj.core.api.Condition.description.

Returns the description of this condition.

Returns:Description

the description of this condition.

Annotations
@Override
descriptionPrefixback to summary
public abstract String descriptionPrefix()

method used to prefix the subclass join description, ex: "all of"

Returns:String

the prefix to use to build the description.

notNullback to summary
private static <T> T notNull(T condition)