Examples of empty()


Examples of java.util.Stack.empty()

     */
    public TreeDrawerNode findNode(String nodeid)
    {
      Stack remaining = new Stack();
      remaining.push(this);
      while (remaining.empty() == false) {
        TreeDrawerNode node = (TreeDrawerNode) remaining.pop();
     
        if(node.getId().equals(nodeid)) return node;

        TreeDrawerNode leftNode = node.getLeft();
View Full Code Here

Examples of java.util.Stack.empty()

                        }

                        this.children = newChildrenMap;

                        // If there were missing children
                        if (!missingChildren.empty())
                        {

                            while (!missingChildren.empty())
                            {
                                FileObject child = (FileObject)
View Full Code Here

Examples of java.util.Stack.empty()

                        // If there were missing children
                        if (!missingChildren.empty())
                        {

                            while (!missingChildren.empty())
                            {
                                FileObject child = (FileObject)
                                    missingChildren.pop();
                                this.fireAllCreate(child);
                            }
View Full Code Here

Examples of java.util.Stack.empty()

          S.push(Integer.toString(b.mag[0], rdx));
        }
        u = u.divide(base);
      }
      // Then pop the stack
      while (!S.empty()) {
        s = s + S.pop();
      }
    }
    // Strip leading zeros.
    while (s.length() > 1 && s.charAt(0) == '0') {
View Full Code Here

Examples of java.util.Stack.empty()

   * the draw method actually does the drawing
   */
  public void draw(TreeDrawerNode startNode) {
    Stack remaining = new Stack();
    remaining.push(startNode);
    while (remaining.empty() == false) {
      TreeDrawerNode node = (TreeDrawerNode) remaining.pop();

      // just return if no subkids visible.
      if ((node.getMaxIndex() < minInd) ||
          (node.getMinIndex() > maxInd))
View Full Code Here

Examples of java.util.Stack.empty()

   * the draw method actually does the drawing
   */
  public void draw(TreeDrawerNode startNode) {
    Stack remaining = new Stack();
    remaining.push(startNode);
    while (remaining.empty() == false) {
      TreeDrawerNode node = (TreeDrawerNode) remaining.pop();
      // just return if no subkids visible.
      if ((node.getMaxIndex() < minInd) ||
          (node.getMinIndex() > maxInd))
        continue;
View Full Code Here

Examples of java.util.Stack.empty()

  private void interateGTR(PrintStream ps, TreeDrawerNode startNode) {
    int height = (int)getYmapHeight();
    Stack remaining = new Stack();
    remaining.push(startNode);
    while (remaining.empty() == false) {
      TreeDrawerNode node = (TreeDrawerNode) remaining.pop();
      TreeDrawerNode left = node.getLeft();
      TreeDrawerNode right = node.getRight();
     
      int rx = (int) (scaleGTR * (right.getCorr() - corrGTR));
View Full Code Here

Examples of java.util.Stack.empty()

          else
            serviceResource(request, response, config);
        }
      } finally {
        usedURIStack.pop();
        if (usedURIStack.empty())
          threadStacks.remove(t);
      }

    }
  }
View Full Code Here

Examples of java.util.Stack.empty()

            _pools.put(key,stack);
        }
        Object obj = null;
        do {
            boolean newlyMade = false;
            if (!stack.empty()) {
                obj = stack.pop();
                _totIdle--;
            } else {
                if(null == _factory) {
                    throw new NoSuchElementException("pools without a factory cannot create new objects as needed.");
View Full Code Here

Examples of java.util.Stack.empty()

  private static class ThreadLocalStack extends ThreadLocal {

    public boolean empty () {
      Stack stack = (Stack)get();
      return stack.empty();
    }

    public Object peek () {
      Object obj = null;
      Stack stack = (Stack)get();
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.