Package java.util

Examples of java.util.ArrayList.listIterator()


                    return s1.avg == s2.avg ? s1.key.compareTo(s2.key) : (s1.avg > s2.avg ? -1 : 1);
                }
            });

            // keeping only the top series in the list
            for (ListIterator i = seriesList.listIterator(getTop()); i.hasNext();) {
                i.next();
                i.remove();
            }
        }
View Full Code Here


                    pluginDirectory,
                    contents,
                    includeSubdirectories);

                // - remove the root path from each file
                for (final ListIterator iterator = contents.listIterator(); iterator.hasNext();)
                {
                    iterator.set(
                        StringUtils.replace(
                            ((File)iterator.next()).getPath().replace(
                                '\\',
View Full Code Here

    {
        final List metafacades = new ArrayList();
        if (metaobjects != null)
        {
            metafacades.addAll(metaobjects);
            for (final ListIterator iterator = metafacades.listIterator(); iterator.hasNext();)
            {
                iterator.set(this.shieldedElement(iterator.next()));
            }
        }
        return metafacades;
View Full Code Here

    {
        final List files = new ArrayList();
        this.loadFiles(
            directory,
            files);
        for (final ListIterator iterator = files.listIterator(); iterator.hasNext();)
        {
            final File file = (File)iterator.next();
            final String filePath = file.toString().replace(
                    '\\',
                    '/');
View Full Code Here

            allArtifacts.clear();
            allArtifacts.addAll(result.getArtifacts());
        }

        final List allArtifactPaths = new ArrayList(allArtifacts);
        for (final ListIterator iterator = allArtifactPaths.listIterator(); iterator.hasNext();)
        {
            final Artifact artifact = (Artifact)iterator.next();
            if (classpathArtifactTypes.contains(artifact.getType()))
            {
                final File artifactFile = artifact.getFile();
View Full Code Here

              Value lock2 = lock2EqVal.getValue();
              Integer lock2Num = lockToLockNum.get(lock2);

                List afterTn2 = new ArrayList();
              afterTn2.addAll( lockOrder.getSuccsOf(lock2Num) ); // filter here!
              ListIterator lit = afterTn2.listIterator();
              while(lit.hasNext())
              {
                Integer to = (Integer) lit.next(); // node the edges go to
                List labels = lockOrder.getLabelsForEdges(lock2Num, to);
                boolean keep = false;
View Full Code Here

           break;
         }
         parent=(Element)n;
       }
       //Visit them in reverse order.
       ListIterator it=parents.listIterator(parents.size());
       while (it.hasPrevious()) {
       Element ele=(Element)it.previous();
        if (!ele.hasAttributes()) {
          continue;
        }
View Full Code Here

    list.addAll(implementedInterfaces());
    for(int i = 0; i < list.size(); i++) {
      InterfaceDecl decl = (InterfaceDecl)list.get(i);
      if(decl instanceof ParInterfaceDecl) {
        ParInterfaceDecl p = (ParInterfaceDecl)decl;
        for(Iterator i2 = list.listIterator(i); i2.hasNext(); ) {
          InterfaceDecl decl2 = (InterfaceDecl)i2.next();
          if(decl2 instanceof ParInterfaceDecl) {
            ParInterfaceDecl q = (ParInterfaceDecl)decl2;
            if(p != q && p.genericDecl() == q.genericDecl() && !p.sameArgument(q))
              error(p.genericDecl().name() + " cannot be inherited with different arguments: " +
View Full Code Here

            entries.add(i.next());
        }

        if (startIndex >= 0)
        {
            iter = entries.listIterator(startIndex);
        }
        else
        {
            iter = entries.listIterator();
        }
View Full Code Here

        {
            iter = entries.listIterator(startIndex);
        }
        else
        {
            iter = entries.listIterator();
        }
        currentIndex = startIndex;
    }

    public void add(Object o)
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.