Package java.util

Examples of java.util.LinkedHashSet.toArray()


    }

    private Class[] getInterfaces(final Class clazz) {
        Set interfaces = new LinkedHashSet();
        getInterfaces(interfaces, clazz);
        return (Class[]) interfaces.toArray(new Class[interfaces.size()]);
    }

    public Map getBlockServletMap() {
        ApplicationContext applicationContext = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
        if (this.blockServletCollector == null || applicationContext.getStartupDate() != this.applicationContextStartDate) {
View Full Code Here


      boolean checkPublic =
    !Modifier.isPublic(uproxyClass.getModifiers());
      getSuperinterfaces(interfaceList, uproxyClass,
             isConstrainable, checkPublic);
      Class[] proxyInterfaces = (Class[])
    interfaceList.toArray(new Class[interfaceList.size()]);
     
      /*
       * Create a dynamic proxy with an ActivatableInvocationHandler.
       */
      InvocationHandler handler =
View Full Code Here

                if (credential.getAccreditable().equals(accreditable)) {
                    returnCredential.add(credential);
                }
            }
        }
        return (Credential[]) returnCredential.toArray(new Credential[returnCredential.size()]);
    }

    public void moveRoleDown(Accreditable accreditable, Role role) throws AccessControlException {
        moveRole(accreditable, role, true);
    }
View Full Code Here

        Set credentials = new LinkedHashSet();

        for (int accrIndex = 0; accrIndex < this.credentials.length; accrIndex++) {
            credentials.add(this.credentials[accrIndex]);
        }
        return (Credential[]) credentials.toArray(new Credential[credentials
                .size()]);
    }

    public Credential[] getCredentials(Identity identity)
            throws AccessControlException {
View Full Code Here

                    returnCredential.add(credential);
                }
            }
        }

        return (Credential[]) returnCredential
                .toArray(new Credential[returnCredential.size()]);
    }

}
View Full Code Here

        Collection r = new LinkedHashSet();
        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
            DependencyResolver resolver = (DependencyResolver) iter.next();
            r.addAll(Arrays.asList(resolver.listTokenValues(token, otherTokenValues)));
        }
        return (String[]) r.toArray(new String[r.size()]);
    }

    public OrganisationEntry[] listOrganisationEntries() {
        List entries = new ArrayList();
        for (Iterator iter = settings.getResolvers().iterator(); iter.hasNext();) {
View Full Code Here

            String[] ruleConfs = rule.getConfigurations();
            if (containsAny(ruleConfs, moduleConfigurations)) {
                rules.add(rule);
            }
        }
        return (ExcludeRule[]) rules.toArray(new ExcludeRule[rules.size()]);
    }

    private boolean containsAny(String[] arr1, String[] arr2) {
        return new ArrayList(Arrays.asList(arr1)).removeAll(Arrays.asList(arr2));
    }
View Full Code Here

    public IncludeRule[] getIncludeRules(String[] moduleConfigurations) {
        Set rules = new LinkedHashSet();
        for (int i = 0; i < moduleConfigurations.length; i++) {
            rules.addAll(Arrays.asList(getIncludeRules(moduleConfigurations[i])));
        }
        return (IncludeRule[]) rules.toArray(new IncludeRule[rules.size()]);
    }

    public ExcludeRule[] getExcludeRules(String[] moduleConfigurations) {
        Set rules = new LinkedHashSet();
        for (int i = 0; i < moduleConfigurations.length; i++) {
View Full Code Here

                        || !evictedMrids.contains(report.getArtifact().getModuleRevisionId())) {
                    all.add(report);  
                }
            }
        }
        return (ArtifactDownloadReport[]) all.toArray(new ArtifactDownloadReport[all.size()]);
    }

    /**
     * Get the report on the sucessfull download requests with the evicted modules
     *
 
View Full Code Here

        Collection all = new LinkedHashSet();
        for (Iterator iter = confReports.values().iterator(); iter.hasNext();) {
            ConfigurationResolveReport report = (ConfigurationResolveReport) iter.next();
            all.addAll(Arrays.asList(report.getEvictedNodes()));
        }
        return (IvyNode[]) all.toArray(new IvyNode[all.size()]);
    }

    public IvyNode[] getUnresolvedDependencies() {
        Collection all = new LinkedHashSet();
        for (Iterator iter = confReports.values().iterator(); iter.hasNext();) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.