for (Iterator iter = myMalfunctions.values().iterator(); iter.hasNext();) { Malfunction currentMalfunction = (Malfunction) (iter.next());
for (Malfunction currentMalfunction : myMalfunctions.values()) {
    public void fixAllMalfunctions() {        for (Iterator iter = myMalfunctions.values().iterator(); iter.hasNext();) {            Malfunction currentMalfunction = (Malfunction) (iter.next());            if (currentMalfunction.getLength() == MalfunctionLength.TEMPORARY_MALF)                myMalfunctions.remove(new Long(currentMalfunction.getID()));        }    }