Code example for Collection

Methods: addAll

0
    Collection<String> urls = new ArrayList<String>();
    Collection<Control> controls = new ArrayList<Control>();
 
    public PenroseSearchReference(DN dn, Collection<String> urls, Collection<Control> controls) {
        this.dn = dn;
        this.urls.addAll(urls);
        this.controls.addAll(controls);
    } 
 
    public DN getDn() throws Exception { 
        return dn;
    } 
 
    public void setDn(DN dn) {
        this.dn = dn;
    } 
 
    public Collection<String> getUrls() throws Exception {
        return urls;
    }