ArrayList list = (ArrayList) constraints.get(constrained); if (list == null) { constraints.put(constrained, newConstraints); } else { for (int i = 0; i < newConstraints.size(); i++) { ResolverExport exp = (ResolverExport) newConstraints.get(i); if (!list.contains(exp)) list.add(newConstraints.get(i)); }
ArrayList list = createConstraints(constrained); for (int i = 0; i < newConstraints.size(); i++) { Object constraint = newConstraints.get(i); if (!list.contains(constraint)) list.add(constraint);
	private void addConstraints(ResolverExport constrained, ArrayList newConstraints) {		ArrayList list = (ArrayList) constraints.get(constrained);		if (list == null) {			constraints.put(constrained, newConstraints);		} else {			for (int i = 0; i < newConstraints.size(); i++) {				ResolverExport exp = (ResolverExport) newConstraints.get(i);				if (!list.contains(exp))					list.add(newConstraints.get(i));			}		}	}