Package java.util

Examples of java.util.ArrayList.addAll()


    public String[] getExtends(JavaClass javaClass) {
        Collection extendsLst = new ArrayList();
        EjbInterfaceTag interfaceTag = (EjbInterfaceTag) javaClass.getTagByName(TagLibrary.EJB_INTERFACE);

        if ((interfaceTag != null) && (interfaceTag.getServiceEndpointExtends() != null)) {
            extendsLst.addAll(Arrays.asList(interfaceTag.getServiceEndpointExtends()));
        }

        if (!extendsLst.contains("java.rmi.Remote")) {
            extendsLst.add("java.rmi.Remote");
        }
View Full Code Here


    public String[] getExtends(JavaClass javaClass) {
        Collection extendsLst = new ArrayList();
        EjbInterfaceTag interfaceTag = (EjbInterfaceTag) javaClass.getTagByName(TagLibrary.EJB_INTERFACE);

        if ((interfaceTag != null) && (interfaceTag.getExtends() != null)) {
            extendsLst.addAll(Arrays.asList(interfaceTag.getExtends()));
        }

        if (!extendsLst.contains("javax.ejb.EJBObject")) {
            extendsLst.add("javax.ejb.EJBObject");
        }
View Full Code Here

    public String[] getExtends(JavaClass javaClass) {
        Collection extendsLst = new ArrayList();
        EjbInterfaceTag interfaceTag = (EjbInterfaceTag) javaClass.getTagByName(TagLibrary.EJB_INTERFACE);

        if ((interfaceTag != null) && (interfaceTag.getLocalExtends() != null)) {
            extendsLst.addAll(Arrays.asList(interfaceTag.getLocalExtends()));
        }

        if (!extendsLst.contains("javax.ejb.EJBLocalObject")) {
            extendsLst.add("javax.ejb.EJBLocalObject");
        }
View Full Code Here

                if (meta != null) {
                    List newMetadata = new ArrayList();

                    for (Iterator iter = meta.iterator(); iter.hasNext();) {
                        JavaClass javaClass = (JavaClass) iter.next();
                        newMetadata.addAll(Arrays.asList(expandClass(javaClass)));
                    }

                    // We now have to filter the collection to eliminate duplicate value objects

                    /*
 
View Full Code Here

    }

    public String[] getImplements(JavaClass javaClass) {
        Collection implementsLst = new ArrayList();
        PkMetadata pkHierarchy = getMetaPk(javaClass);
        implementsLst.addAll(Arrays.asList(pkHierarchy.getImplements()));

        if (!implementsLst.contains("java.io.Serializable")) {
            implementsLst.add("java.io.Serializable");
        }
View Full Code Here

        public BeanProperty[] getParentProperties() {
            List retVal = new ArrayList();

            if (parent != null) {
                retVal.addAll(Arrays.asList(parent.getProperties()));
                retVal.addAll(Arrays.asList(parent.getParentProperties()));
            }

            return (BeanProperty[]) retVal.toArray(new BeanProperty[0]);
        }
View Full Code Here

        public BeanProperty[] getParentProperties() {
            List retVal = new ArrayList();

            if (parent != null) {
                retVal.addAll(Arrays.asList(parent.getProperties()));
                retVal.addAll(Arrays.asList(parent.getParentProperties()));
            }

            return (BeanProperty[]) retVal.toArray(new BeanProperty[0]);
        }
View Full Code Here

    final ArrayList list = new ArrayList();
    final Iterator iterator = actions.values().iterator();
    while (iterator.hasNext())
    {
      final ActionPlugin[] plugins = (ActionPlugin[]) iterator.next();
      list.addAll(Arrays.asList(plugins));
    }
    final ActionPlugin[] plugins = (ActionPlugin[]) list.toArray(new ActionPlugin[list.size()]);
    Arrays.sort(plugins, new ActionPluginComparator());
    PreviewPaneUtilities.addActionsToToolBar(toolBar, plugins, zoomSelectorBox, this);
    return toolBar;
View Full Code Here

    public void shutdownAll() {
        logger.debug("Close all daemon threads.");
        List threadslist = new ArrayList(threads.size());

        synchronized (this) {
            threadslist.addAll(threads.values());
        }

        for (int i = 0; i < threadslist.size(); i++) {
            AbstractDaemonThread thread = (AbstractDaemonThread) threadslist.get(i);
            thread.shutdown(0);
View Full Code Here

  public void addReadEntity( RateControlledEntity entity ) {
    try entities_mon.enter();
      if( entity.getPriority() == RateControlledEntity.PRIORITY_HIGH ) {
        //copy-on-write
        ArrayList high_new = new ArrayList( high_priority_entities.size() + 1 );
        high_new.addAll( high_priority_entities );
        high_new.add( entity );
        high_priority_entities = high_new;
      }
      else {
        //copy-on-write
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.