Package java.util

Examples of java.util.LinkedList.removeLast()


                    if (last.denotesRoot()) {
                        // the first element is the root element;
                        // ".." would refer to the parent of root
                        throw new RepositoryException("Path can not be canonicalized: unresolvable '..' element");
                    }
                    queue.removeLast();
                    if (queue.isEmpty()) {
                        last = PARENT_ELEMENT;
                    } else {
                        last = (Path.Element) queue.getLast();
                    }
View Full Code Here


                    // the first element is the root element;
                    // ".." would refer to the parent of root
                    throw new MalformedPathException(
                            "Path can not be canonicalized: unresolvable '..' element");
                }
                queue.removeLast();
                if (queue.isEmpty()) {
                    last = PARENT_ELEMENT;
                } else {
                    last = (PathElement) queue.getLast();
                }
View Full Code Here

            uriByPrefix.remove(prefix);
         }
         else if (obj instanceof LinkedList)
         {
            LinkedList list = (LinkedList)obj;
            uri = (String)list.removeLast();
            if (list.isEmpty())
            {
               uriByPrefix.remove(prefix);
            }
         }
View Full Code Here

                SPFChecker checker = (SPFChecker) i.next();
                policyCheckers.add(checker);
            }

            while (policyCheckers.size() > 0) {
                SPFChecker removeLast = (SPFChecker) policyCheckers.removeLast();
                spfData.pushChecker(removeLast);
            }

            return null;
        }
View Full Code Here

            LinkedList queue = new LinkedList();
            Path.Element last = PARENT_ELEMENT;
            for (int i = 0; i < elements.length; i++) {
                Path.Element elem = elements[i];
                if (elem.denotesParent() && !last.denotesParent()) {
                    queue.removeLast();
                    if (queue.isEmpty()) {
                        last = PARENT_ELEMENT;
                    } else {
                        last = (Path.Element) queue.getLast();
                    }
View Full Code Here

        LinkedList queue = new LinkedList();
        String last = "..";
        for (int i = 0; i < elems.length; i++) {
            String segm = elems[i];
            if ("..".equals(segm) && !"..".equals(last)) {
                queue.removeLast();
                if (queue.isEmpty()) {
                    last = "..";
                } else {
                    last = queue.getLast().toString();
                }
View Full Code Here

    public Object pop() {
        LinkedList list = listThreadLocal.getList();
        if (list.isEmpty()) {
            return null;
        }
        return list.removeLast();
    }

    public void clear() {
        listThreadLocal.getList().clear();
    }
View Full Code Here

            if (stops == null) {
                stops = new LinkedList();
            }
            if (previous != null) {
                if (stop.offset == previous.offset) {
                    stops.removeLast();
                } else if (stop.offset < previous.offset) {
                    stop.offset = previous.offset+0.01f;
                }
            }
            stops.add(stop);
View Full Code Here

        LinkedList clean = new LinkedList();
        while (st.hasMoreTokens()) {
            String token = st.nextToken();
            if ("..".equals(token)) {
                if (! clean.isEmpty() && ! "..".equals(clean.getLast())) {
                    clean.removeLast();
                    if (! st.hasMoreTokens()) {
                        isDir = true;
                    }
                } else {
                    clean.add("..");
View Full Code Here

    //  no change, stays with no styling
    // If there is styling:
    //  everthing gets the same style that the first block has
    if(_styleAtom != null) {
      LinkedList pStyles = _styleAtom.getParagraphStyles();
      while(pStyles.size() > 1) { pStyles.removeLast(); }
     
      LinkedList cStyles = _styleAtom.getCharacterStyles();
      while(cStyles.size() > 1) { cStyles.removeLast(); }
     
      _rtRuns[0].setText(s);
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.