javax.constraints.impl.constraint
Class ConstraintNotAllEqual

java.lang.Object
  extended by javax.constraints.impl.CommonBase
      extended by javax.constraints.impl.AbstractConstraint
          extended by javax.constraints.impl.constraint.ConstraintNotAllEqual
All Implemented Interfaces:
Constraint

public class ConstraintNotAllEqual
extends AbstractConstraint

This constraint states that not all elements within an array of vars should be the same


Constructor Summary
ConstraintNotAllEqual(Var[] vars)
           
ConstraintNotAllEqual(Var[] vars, int[] values)
           
 
Method Summary
 void post()
          This method takes a constraint's implementation and uses its own RI-specific post-method.
 
Methods inherited from class javax.constraints.impl.AbstractConstraint
and, asBool, implies, negation, or, post
 
Methods inherited from class javax.constraints.impl.CommonBase
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.constraints.Constraint
getImpl, getName, getObject, getProblem, setImpl, setName, setObject
 

Constructor Detail

ConstraintNotAllEqual

public ConstraintNotAllEqual(Var[] vars)

ConstraintNotAllEqual

public ConstraintNotAllEqual(Var[] vars,
                             int[] values)
Method Detail

post

public void post()
Description copied from class: AbstractConstraint
This method takes a constraint's implementation and uses its own RI-specific post-method.

Specified by:
post in interface Constraint
Overrides:
post in class AbstractConstraint