Package java.util

Examples of java.util.LinkedList.removeFirst()


            correctFirstElement = ((org.apache.fop.fo.flow.Block)fobj)
                .getCommonMarginBlock().spaceBefore.getSpace().isDiscard();
        }
        if (correctFirstElement) {
            // remove the wrong element
            KnuthBox wrongBox = (KnuthBox) newList.removeFirst();
            // if this paragraph is at the top of a page, the space before
            // must be ignored; compute the length change
            int decreasedLength = (neededUnits(totalLength.opt)
                                   - neededUnits(totalLength.opt - adjustedSpaceBefore))
                                  * bpUnit;
 
View Full Code Here


        stack.addLast( goal );

        while ( !stack.isEmpty() )
        {
            goal = (Goal) stack.removeFirst();

            if ( chain.contains( goal ) )
            {
                continue;
            }
View Full Code Here

        stack.addLast( goal );

        while ( !stack.isEmpty() )
        {
            goal = (Goal) stack.removeFirst();

            if ( goal == null || chain.contains( goal ) )
            {
                continue;
            }
View Full Code Here

                Object next = j.next();
                dynaTagUris.add( next );

                while ( !dynaTagUris.isEmpty() )
                {
                    String dynaTagUri = (String) dynaTagUris.removeFirst();

                    if ( seen.contains( dynaTagUri ) )
                    {
                        continue;
                    }
View Full Code Here

        startTime = System.currentTimeMillis();  
        for(int x = loopCount; x > 0; x--) {
            // unrolled a few times to minimize effect of loop
            ll.addFirst(o1);
            ll.addLast(o2);
            ll.removeFirst();
            ll.removeLast();
            ll.add(o1);
            ll.remove(0);
            //
            ll.addFirst(o1);
View Full Code Here

            ll.add(o1);
            ll.remove(0);
            //
            ll.addFirst(o1);
            ll.addLast(o2);
            ll.removeFirst();
            ll.removeLast();
            ll.add(o1);
            ll.remove(0);
            //
            ll.addFirst(o1);
View Full Code Here

            ll.add(o1);
            ll.remove(0);
            //
            ll.addFirst(o1);
            ll.addLast(o2);
            ll.removeFirst();
            ll.removeLast();
            ll.add(o1);
            ll.remove(0);
        }
        endTime = System.currentTimeMillis();  
View Full Code Here

      }
    }
    Session session = null;
    synchronized (sessionList) {
      if (!sessionList.isEmpty()) {
        session = (Session) sessionList.removeFirst();
      }
    }
    if (session != null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Found cached Session for mode " + mode + ": " + session);
View Full Code Here

                throw new MissingDependencyException("Unable to download dependency "+artifact);
            }
            if(monitor != null) {
                monitor.setTotalBytes(-1); // Just to be sure
            }
            URL repository = (URL) list.removeFirst();
            URL url = artifact == null ? repository : getURL(artifact, repository);
            if (artifact != null)
                log.info("Attempting to download "+artifact+" from "+url);
            else
                log.info("Attempting to download "+url);
View Full Code Here

        LinkedList stack = new LinkedList();
        stack.addFirst(intfClass);

        while (!stack.isEmpty()) {
            Class intf = (Class) stack.removeFirst();
            allInterfaces.add(intf);
            stack.addAll(0, Arrays.asList(intf.getInterfaces()));
        }

        return allInterfaces;
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.