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

public abstract Class Negative<T>

extends Condition<T>
Class Inheritance
Known Direct Subclasses
org.assertj.core.condition.Not, org.assertj.core.condition.DoesNotHave
Imports
org.assertj.core.api.Condition, org.assertj.core.util.VisibleForTesting

Inverse the condition.
Authors
Nicolas François, Mikhail Mazursky

Field Summary

Modifier and TypeField and Description
pack-priv final Condition<? super T>

Constructor Summary

AccessConstructor and Description
protected
Negative(Condition<? super T> condition)

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(T
the value to verify.
value
)

Overrides org.assertj.core.api.Condition.matches.

Verifies that the given value satisfies this condition.
Inherited from org.assertj.core.api.Condition:
conditionDescriptionWithStatusdescribedAsdescriptionstatustoString

Field Detail

conditionback to summary
pack-priv final Condition<? super T> condition
Annotations
@VisibleForTesting

Constructor Detail

Negativeback to summary
protected Negative(Condition<? super T> condition)

Method Detail

matchesback to summary
public boolean matches(T value)

Overrides org.assertj.core.api.Condition.matches.

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

Verifies that the given value satisfies this condition.

Parameters
value:T

the value to verify.

Returns:boolean

true if the given value satisfies this condition; false otherwise.

Annotations
@Override