@Override public Collection<Constraint> getConstraints() { Collection<Constraint> constraints = new HashSet(); constraints.addAll(unaryConstraints.getAll()); constraints.addAll(binaryConstraints.getAll()); return constraints; }
public Collection<UnaryConstraint> getUnaryConstraints() { return unaryConstraints.getAll(); }
public UnaryConstraint getUnaryConstraint(Class<? extends UnaryConstraint> unaryConstraintClass) { return unaryConstraints.get(unaryConstraintClass); }
public void removeUnaryConstraint(Class<? extends UnaryConstraint> unaryConstraintClass) { unaryConstraints.remove(unaryConstraintClass); isDirty = true; }
public void addUnaryConstraint(UnaryConstraint unaryConstraint) { unaryConstraints.add(unaryConstraint); isDirty = true; }