public synchronized boolean removeEntry(ServiceURL url, Vector scopes) { boolean ok = false; boolean equal = false; Iterator iter = database.iterator(); while(iter.hasNext()) { equal = false; SLPDatabaseEntry e = (SLPDatabaseEntry)iter.next(); if(e.getURL().equals(url)) { if(scopes == null) equal = true; else { Vector s = SLPUtil.findCommonScopes(e.getScopes(), scopes); equal = (s.size() == scopes.size()); } if(equal) { iter.remove(); ok = true; } } } return ok;
public synchronized SLPDatabaseEntry removeEntry(SLPDatabaseEntry entry) { database.remove(entry); return entry;
    public synchronized boolean removeEntry(ServiceURL url, Vector scopes) {        boolean ok = false;        boolean equal = false;        Iterator iter = database.iterator();        while(iter.hasNext()) {            equal = false;            SLPDatabaseEntry e = (SLPDatabaseEntry)iter.next();            if(e.getURL().equals(url)) {                if(scopes == null) equal = true;                else {                    Vector s = SLPUtil.findCommonScopes(e.getScopes(), scopes);                    equal = (s.size() == scopes.size());                }                if(equal) {                    iter.remove();                    ok = true;                }            }        }        return ok;    }