public static int getNegationCount(final EvaluationContext context)
   {
      if (context == null)
         return 0;

      Integer count = (Integer)context.get(NEGATION_COUNT_KEY);
      return count == null ? 0 : count;
   }
public static int getNegationCount(final EvaluationContext context)
   {
      if (context == null)
         return 0;

      Integer count = (Integer)context.get(NEGATION_COUNT_KEY);
      return count == null ? 0 : count;
   }
public static int getNegationCount ( final EvaluationContext context ) { if ( context == null ) return 0 ; Integer count = ( Integer ) context . get ( NEGATION_COUNT_KEY ) ; return count == null ? 0 : count ; }
Returns the number of "Not"s that have been evaluated in the current evaluation process.

For example, when(Not.any(MyCondition)) would have a "NotCount" of "1" during the evaluation of "MyCondition".

when(Not.any(Not.any(MyCondition))) would have a "NotCount" of "2" during the evaluation of "MyCondition".

This is useful for conditions that may have side effects, as they will know whether or not their condition is being
negated.
Returns the number of Not s that have been evaluated in the current evaluation process .