if(((CacheObject)it.next()).getRefTime()==0){ it.remove(); return;
c=(String)it.next(); obj=(CacheObject)suggestionCache.get(c); if(obj.getRefTime()==0){ lowestCode=c; break; } if(lowestTime>obj.getRefTime()){ lowestCode=c; lowestTime=obj.getRefTime();
    private void addToCache(String code, List l){        String c;        Iterator it;        CacheObject obj;        if(suggestionCache.size()>=MAX_CACHED){            it=suggestionCache.values().iterator();            while(it.hasNext()){                if(((CacheObject)it.next()).getRefTime()==0){                    it.remove();                    return;                }            }            it.remove();        }                suggestionCache.put(code,new CacheObject(l));    }