Package java.util

Examples of java.util.List.listIterator()


      if (d == null) {
        continue;
      }
      method.setCodeBlock(d.toString());
      List param = dec.parameters();
      ListIterator paramList = param.listIterator();
      while (paramList.hasNext()) {
        SingleVariableDeclaration sin = (SingleVariableDeclaration) paramList.next();
        method.getParameters().add(sin.getType().toString());
      }
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

      {
        JRDesignDataset dataset = (JRDesignDataset) it.next();
        reportCompileData.setDatasetCompileData(dataset, units[it.nextIndex()].getCompileData());
      }
     
      for (ListIterator it = crosstabs.listIterator(); it.hasNext();)
      {
        JRDesignCrosstab crosstab = (JRDesignCrosstab) it.next();
        Integer crosstabId = expressionCollector.getCrosstabId(crosstab);
        reportCompileData.setCrosstabCompileData(crosstabId.intValue(), units[datasets.size() + it.nextIndex()].getCompileData());
      }
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            List state = getCurrentState(false);
            return state.listIterator();
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            List state = getCurrentState(false);
            return state.listIterator(index);
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

                        locks.put(p, p);
                        if (log.isDebugEnabled())
                          log.debug("Created new pattern and locked");
                        return p;
                    } else {
                        for (Iterator i = pool.listIterator(); i.hasNext();) {
                            Pattern p = (Pattern) i.next();
                            if (!locks.containsKey(p)) {
                              if (log.isDebugEnabled())
                                log.debug("Found a free pattern");
                                locks.put(p, p);
View Full Code Here

      public void testNextAndPrevious()
      {
        List col = createFilterColl(middleView);
        assertEquals( "view list size", 3, col.size() );

        ListIterator listIter = col.listIterator();

        assertTrue( "hasNext", listIter.hasNext() );
        assertEquals( "next index", 0, listIter.nextIndex() );
        assertEquals( "next", fullView[0], listIter.next() );
View Full Code Here

      {
        List col = createFilterColl(endsView);
        //List col = expectedView;
        assertEquals( "view list size", 3, col.size() );

        ListIterator listIter = col.listIterator(1);
        assertEquals( "next index ", 1, listIter.nextIndex() );
        assertEquals( "previous index", 0, listIter.previousIndex() );

        assertTrue( "hasNext", listIter.hasNext() );
        assertTrue( "hasPrevious", listIter.hasPrevious() );
View Full Code Here

               Object handback = handbackEntry.getKey();
               if (handback == NULL)
                  handback = null;

               List listeners = (List) handbackEntry.getValue();
               for (ListIterator k = listeners.listIterator(); k.hasNext();)
               {
                  KernelEventListener listener = (KernelEventListener) k.next();
                  try
                  {
                     if (filter == null || filter.wantEvent(event, handback))
View Full Code Here

      if (trace)
         log.trace(this.toShortString() + " loading class " + name + " from classloaders " + classLoaders);
      if (classLoaders == null)
         return null;
     
      for (ListIterator i = classLoaders.listIterator(); i.hasNext();)
      {
         DomainClassLoader cl = (DomainClassLoader) i.next();
         try
         {
            Class clazz = cl.loadClassLocally(name, resolve);
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.