public void addConstraint(Constraint constraint){
  if (constraints == null || constraints.indexOf(constraint) < 0) {
    constraints=add(constraints,constraint);
  }
}

public void addConstraint ( Constraint constraint ) { if ( constraints == null || constraints . indexOf ( constraint ) < 0 ) { constraints = add ( constraints , constraint ) ; } }
add a constraint to the table .
