org.assertj.core.condition
Class Not<T>

java.lang.Object
  extended by org.assertj.core.api.Condition<T>
      extended by org.assertj.core.condition.Negative<T>
          extended by org.assertj.core.condition.Not<T>
All Implemented Interfaces:
Descriptable<Condition<T>>

public class Not<T>
extends Negative<T>

Returns true if the condition is not satisfied.

Author:
Nicolas François, Mikhail Mazursky

Method Summary
static
<T> Not<T>
not(Condition<? super T> condition)
          Creates a new Not.
 String toString()
           
 
Methods inherited from class org.assertj.core.condition.Negative
matches
 
Methods inherited from class org.assertj.core.api.Condition
as, as, describedAs, describedAs, description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

not

public static <T> Not<T> not(Condition<? super T> condition)
Creates a new Not.

Parameters:
condition - the condition to inverse.
Returns:
The Not condition created.

toString

public String toString()
Overrides:
toString in class Condition<T>


Copyright © 2013–2015 AssertJ. All rights reserved.