public double getMinAttrib(Project.Attribute attr) { double min = Double.MAX_VALUE; double value; for (Project p : refProjects) { value = p.getAttribute(attr); if (value < min) { min = value; } } return min; }
public double getMaxAttrib(Project.Attribute attr) { double max = 0; double value; for (Project p : refProjects) { value = p.getAttribute(attr); if (value > max) { max = value; } } return max; }