Examples of previous()


Examples of java.util.ListIterator.previous()

            long totalSizeInBytes = 0L;
            ret = new ArrayList();

            // it leaves at least one entry in the list
            while (iter.hasPrevious()) {
               I_QueueEntry entry = (I_QueueEntry)iter.previous();
               currentSizeInBytes = entry.getSizeInBytes();
               if (!isInsideRange(count, numOfEntries, totalSizeInBytes, numOfBytes)) break;
               totalSizeInBytes += currentSizeInBytes;

               if (limitEntry != null && this.comparator.compare(limitEntry, entry) >= 0) break;
View Full Code Here

Examples of java.util.ListIterator.previous()

        int insertionIndex = 0,
            i = typeAheadMarkers.size();
        ListIterator iter = typeAheadMarkers.listIterator(i);

        for (; i > 0; i--) {
            TypeAheadMarker marker = (TypeAheadMarker)iter.previous();
            if (marker.after <= after) {
                insertionIndex = i;
                break;
            }
        }
View Full Code Here

Examples of java.util.ListIterator.previous()

                    return;
                }
            }
        } else {
            while (iter.hasPrevious()) {
                marker = (TypeAheadMarker)iter.previous();
                if (marker.untilFocused == untilFocused &&
                    marker.after == after)
                {
                    iter.remove();
                    return;
View Full Code Here

Examples of java.util.ListIterator.previous()

         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;
        }
    NamedNodeMap attrs = ele.getAttributes();
       int attrsLength = attrs.getLength();
View Full Code Here

Examples of java.util.ListIterator.previous()

      while (it.hasNext())
      {
        JRVariable var = (JRVariable) it.next();
        if (!var.isSystemDefined())
        {
          it.previous();
          break;
        }
      }
      it.add(variable);
      index = it.previousIndex();
View Full Code Here

Examples of java.util.ListIterator.previous()

         
          if (compare < 0)
          {
            if (totalItEntry != null)
            {
              totalIt.previous();
            }
           
            totalIt.add(new MapEntry(key, addVal));
            entryMap.put(key, addVal);
           
View Full Code Here

Examples of java.util.ListIterator.previous()

    private ArrayList invokables = new ArrayList();

    public Object dispatch(Invocation invocation) throws Throwable {
        ListIterator i = invokables.listIterator(invokables.size());
        while (i.hasPrevious()) {
            Invokable invokable = (Invokable) i.previous();
            if (invokable.matches(invocation)) {
                return invokable.invoke(invocation);
            }
        }
        throw new DynamicMockError(invocation, "No match found");
View Full Code Here

Examples of java.util.ListIterator.previous()

      ObjectName name = null;

      ListIterator i = servicesCopy.listIterator(servicesCopy.size());
      while (i.hasPrevious())
      {
         ServiceContext ctx = (ServiceContext) i.previous();
         name = ctx.objectName;

         // Go through the full stop/destroy cycle
         try
         {
View Full Code Here

Examples of java.util.ListIterator.previous()

   protected void stopService() throws Exception
   {
      ListIterator iter = containerOrdering.listIterator(containerOrdering.size());
      while (iter.hasPrevious())
      {
         Container con = (Container) iter.previous();
         try
         {
            ObjectName jmxName = con.getJmxName();
            // The container may already be destroyed so validate metaData
            BeanMetaData metaData = con.getBeanMetaData();
View Full Code Here

Examples of java.util.ListIterator.previous()

         webServer = (WebServiceMBean) MBeanProxyExt.create(WebServiceMBean.class, webServiceName);
      }
      ListIterator iter = containerOrdering.listIterator(containerOrdering.size());
      while (iter.hasPrevious())
      {
         Container con = (Container) iter.previous();
         ObjectName jmxName = con.getJmxName();
         int conState = con.getState();
         boolean destroyContainer = true;
         log.debug("Looking to destroy container: " + jmxName + ", state: " + con.getStateString() + ", destroy: "
               + destroyContainer);
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.