Code example for Iterator

Methods: hasNext, next, remove

0
        mMissing = bitmap;
    } 
 
    private void loadNext() { 
        Iterator<Group> it = mQueue.iterator();
        if (!mBusy && it.hasNext()) {
            mBusy = true;
            Group group = it.next();
            it.remove();
            // double check image availability 
            if (mUrlToBitmap.get(group.url) != null) {
                if (group.image != null) {                    
                    if(null != group.eventHandler) {
                    	group.eventHandler.onFinished(mUrlToBitmap.get(group.url));
                    } 
                     
                    group.image.setImageBitmap(mUrlToBitmap.get(group.url));
                } 
                mBusy = false;
                loadNext(); 
            } else {