for (Iterator<DetectorOrderingConstraint> i = constraintList.iterator(); i.hasNext(); ) { DetectorOrderingConstraint constraint = i.next();
for (DetectorOrderingConstraint constraint : constraintList) {
	private ConstraintGraph buildConstraintGraph(		Map<String, DetectorNode> nodeMap,		Set<DetectorFactory> factorySet,		List<DetectorOrderingConstraint> constraintList) throws OrderingConstraintException {		ConstraintGraph result = new ConstraintGraph();		for (Iterator<DetectorOrderingConstraint> i = constraintList.iterator(); i.hasNext(); ) {			DetectorOrderingConstraint constraint = i.next();						Set<DetectorNode> earlierSet = addOrCreateDetectorNodes(					constraint.getEarlier(), nodeMap, factorySet, result);			Set<DetectorNode> laterSet = addOrCreateDetectorNodes(					constraint.getLater(), nodeMap, factorySet, result);						createConstraintEdges(result, earlierSet, laterSet, constraint);		}		return result;	}