
package com.effektif.workflow.impl.conditions;

import com.effektif.workflow.api.condition.Condition;
import com.effektif.workflow.api.condition.NotContains;
import com.effektif.workflow.impl.data.TypedValueImpl;
import com.effektif.workflow.impl.workflowinstance.ScopeInstanceImpl;


/**
 * @author Tom Baeyens
 */
public class NotContainsImpl extends ContainsImpl {

  @Override
  public Class< ? extends Condition> getApiType() {
    return NotContains.class;
  }

  @Override
  public boolean compare(TypedValueImpl leftValue, TypedValueImpl rightValue, ScopeInstanceImpl scopeInstance) {
    return !super.compare(leftValue, rightValue, scopeInstance);
  }
}
