Iterator it = sourcen.values().iterator(); while (it.hasNext()) { geladen += ( (DownloadSourceDO) it.next()).getBereitsGeladen();
synchronized (sourcen){ Iterator it = sourcen.values().iterator(); while (it.hasNext()) { geladen += ( (DownloadSourceDO) it.next()). getBereitsGeladen(); }
    public long getBereitsGeladen() {        long geladen = ready;        try {            Iterator it = sourcen.values().iterator();            while (it.hasNext()) {                geladen += ( (DownloadSourceDO) it.next()).getBereitsGeladen();            }        }        catch (Exception e) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error("Unbehandelte Exception", e);            }        }        return geladen;    }