Package java.util

Examples of java.util.Vector.removeElementAt()


                    a.clear(r.r2, t);
                if (val[t.id] == -1 || val[t.id] > a.d) {
                    if (val[t.id] != -1)
                        for (int zi = 0; zi != v.size(); zi++) {
                            if (((Aresta) v.elementAt(zi)).r2.id == t.id) {
                                v.removeElementAt(zi);
                                break;
                            }
                        }
                    v.addElement(a);
                    val[t.id] = a.d;
View Full Code Here


    Vector accounts = getAccounts();
    boolean modified = false;
    for (int index = 0; index < accounts.size();) {
      Hashtable account = (Hashtable) accounts.elementAt(index);
      if (email.equals(account.get(EMAIL_COLUMN))) {
        accounts.removeElementAt(index);
        modified = true;
      } else {
        index++;
      }
    }
View Full Code Here

        // count-down is OK for deletions!
        for (int i = nodeListeners.size() - 1; i >= 0; --i) {
            LEntry le = (LEntry) nodeListeners.elementAt(i);
            if (le.useCapture == useCapture && le.listener == listener &&
                le.type.equals(type)) {
                nodeListeners.removeElementAt(i);
                // Storage management: Discard empty listener lists
                if (nodeListeners.size() == 0)
                    setEventListeners(node, null);

                // Remove active listener
View Full Code Here

    classQ.addElement( clas );
    Method found = null;
    while ( classQ.size() > 0 )
    {
      Class c = (Class)classQ.firstElement();
      classQ.removeElementAt(0);

      // Is this it?
      // Is the class public or can we use accessibility?
      if ( Modifier.isPublic( c.getModifiers() )
        || ( Capabilities.haveAccessibility() ) )
View Full Code Here

      CookieInfo match = (CookieInfo) list.elementAt(i);
      if (myLength < match.path.length()) {
    break;
      }
      if (cookie.isEquals(match)) {
    list.removeElementAt(i);
    request.log(Server.LOG_DIAGNOSTIC, "Replacing Cookie: " + match);
    break;
      }
  }
  request.log(Server.LOG_DIAGNOSTIC, "Inserting cookie: " + cookie);
View Full Code Here

                    case Node.ELEMENT_NODE:
                        break;

                    case Node.ATTRIBUTE_NODE: {
                        Node attribute = (Node) nodes.elementAt(i);
                        nodes.removeElementAt(i);
                        nodes.insertElementAt(dpf.newTextNode(attribute.getOwnerDocument(),
                                attribute.getNodeValue()), i);

                        break;
                    }
View Full Code Here

                        break;
                    }

                    default: {
                        log.error(".include(): Node Type (" + nodeType + ") can't be a child of Element");
                        nodes.removeElementAt(i);

                        break;
                    }
                    }
                }
View Full Code Here

      {
         if (log.isDebugEnabled())
            log.debug("Pushing gzip-input-stream");

         resp.inp_stream = new GZIPInputStream(resp.inp_stream);
         pce.removeElementAt(pce.size() - 1);
         resp.deleteHeader("Content-length");
      }
      else if (encoding.equalsIgnoreCase("deflate"))
      {
         if (log.isDebugEnabled())
View Full Code Here

      {
         if (log.isDebugEnabled())
            log.debug("Pushing inflater-input-stream");

         resp.inp_stream = new InflaterInputStream(resp.inp_stream);
         pce.removeElementAt(pce.size() - 1);
         resp.deleteHeader("Content-length");
      }
      else if (encoding.equalsIgnoreCase("compress") || encoding.equalsIgnoreCase("x-compress"))
      {
         if (log.isDebugEnabled())
View Full Code Here

      {
         if (log.isDebugEnabled())
            log.debug("Pushing uncompress-input-stream");

         resp.inp_stream = new UncompressInputStream(resp.inp_stream);
         pce.removeElementAt(pce.size() - 1);
         resp.deleteHeader("Content-length");
      }
      else if (encoding.equalsIgnoreCase("identity"))
      {
         if (log.isDebugEnabled())
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.