Examples of removeElementAt()


Examples of java.util.Vector.removeElementAt()

            for (int j = 0; j < size; j++) {
                String osEnvItem = (String) osEnv.elementAt(j);
                String convertedItem = environmentCaseInSensitive
                    ? osEnvItem.toLowerCase() : osEnvItem;
                if (convertedItem.startsWith(key)) {
                    osEnv.removeElementAt(j);
                    if (environmentCaseInSensitive) {
                        // Use the original casiness of the key
                        keyValue = osEnvItem.substring(0, key.length())
                            + keyValue.substring(key.length());
                    }
View Full Code Here

Examples of java.util.Vector.removeElementAt()

            if (pullQ.isEmpty()) {
                return null;
            }

            p = (HttpTunnelPacket) pullQ.elementAt(0);
            pullQ.removeElementAt(0);

            switch (p.getPacketType()) {
            case CONN_ABORT_PACKET:
                removeConn = true;
                pullQ.insertElementAt(p, 0); // Let all threads find the CONN_ABORT_PACKET
View Full Code Here

Examples of java.util.Vector.removeElementAt()

           if(_listenerHash.containsKey(eventService)){
             Vector vCBack = (Vector)_listenerHash.get(eventService);
              for(int i=0; i < vCBack.size(); i++){
                    ScriptableFunction sf = (ScriptableFunction)vCBack.elementAt(i);
                    if(sf == callback){
                      vCBack.removeElementAt(i);
                      break; // removing the first callback only
                    }
              }
             
              //last callback was deleted
View Full Code Here

Examples of java.util.Vector.removeElementAt()

            if(_listenerHash.containsKey(emailService)){
              Vector vCBack = (Vector)_listenerHash.get(emailService);
               for(int i=0; i < vCBack.size(); i++){
                     ScriptableFunction sf = (ScriptableFunction)vCBack.elementAt(i);
                     if(sf == callback){
                       vCBack.removeElementAt(i);
                       break; // removing the first callback only
                     }
               }
              
               //last callback was deleted
View Full Code Here

Examples of java.util.Vector.removeElementAt()

            // Get key including "="
            String key = env[i].substring(0, pos + 1);
            int size = osEnv.size();
            for (int j = 0; j < size; j++) {
                if (((String) osEnv.elementAt(j)).startsWith(key)) {
                    osEnv.removeElementAt(j);
                    break;
                }
            }
            osEnv.addElement(env[i]);
        }
View Full Code Here

Examples of java.util.Vector.removeElementAt()

            // Remove MessageEntries since they are not mapped
            int index = 0;
            while (index < v.size()) {
                if (v.elementAt(index) instanceof MessageEntry) {
                    v.removeElementAt(index);
                } else {
                    index++;
                }
            }
View Full Code Here

Examples of java.util.Vector.removeElementAt()

        // remove the first token it's made of the indentation string and the
        // construct name, we'll need all this to figure out what type of
        // construct it is since we lost all semantics :(
        // (#indent[/]*)(#construct.*)
        String name = (String) metrics.elementAt(0);
        metrics.removeElementAt(0);
        int indent = 0;
        pos = name.lastIndexOf('/');
        if (pos != -1) {
            name = name.substring(pos + 1);
            indent = pos + 1; // indentation is last position of token + 1
View Full Code Here

Examples of java.util.Vector.removeElementAt()

    }
    if (_i >= _poa_array.length){
        //remove surplus nodes
        for (int _j = _poas.size() - 1; _j >= _i; _j--){
        DefaultMutableTreeNode _poa = (DefaultMutableTreeNode) _poas.elementAt(_j);
        _poas.removeElementAt(_j);
        m_tree_model.removeNodeFromParent(_poa);
        }
    }
    else{
        // build new nodes
View Full Code Here

Examples of java.util.Vector.removeElementAt()

    DefaultMutableTreeNode _server_node = (DefaultMutableTreeNode) m_server_nodes.elementAt(index);
    Vector _poas = (Vector) m_poa_nodes.elementAt(index);

    for (int _j = _poas.size() - 1; _j >= 0; _j--){
        DefaultMutableTreeNode _poa = (DefaultMutableTreeNode) _poas.elementAt(_j);
        _poas.removeElementAt(_j);
        m_tree_model.removeNodeFromParent(_poa);
    }

    m_server_nodes.removeElementAt(index);
    m_tree_model.removeNodeFromParent(_server_node);
View Full Code Here

Examples of java.util.Vector.removeElementAt()

    try {
      int index = lookup(v, key);

      if(index >= 0) {
  elements--; // Count
  v.removeElementAt(index);
      }
    } catch(ArrayIndexOutOfBoundsException e) {}
  }

  private static final int lookup(Vector v, String key)
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.