Package java.util

Examples of java.util.Vector.removeElementAt()


    root.hops = 0;
    root.domain = "local";

    while (toExplore.size() > 0) {
      A3CMLDomain domain = (A3CMLDomain) toExplore.elementAt(0);
      toExplore.removeElementAt(0);
      A3CMLServer gateway = (A3CMLServer) servers.get(new Short(domain.gateway));

      if (Log.logger.isLoggable(BasicLevel.DEBUG))
        Log.logger.log(BasicLevel.DEBUG, "configure - explore(" + domain + ")");
View Full Code Here


  Vector muxes = PlugInManager.getPlugInList(null, null,
          PlugInManager.MULTIPLEXER);
  for (int i = 0; i < muxes.size(); i++) {
      String cname = (String)muxes.elementAt(i);
      if (cname.equals("com.sun.media.multiplexer.RawBufferMux")) {
    muxes.removeElementAt(i);
    break;
      }
  }
  PlugInManager.setPlugInList(muxes, PlugInManager.MULTIPLEXER);
    }
View Full Code Here

        else if (v.isEmpty()) {
            return null;
        }
        else {
            Object result = v.elementAt(0);
            v.removeElementAt(0);
            return result;
        }
    }

View Full Code Here

                    log.debug(pool.size() + " connections in pool.");
                    JDBCConnectionImpl impl = null;
                    // retrieve existing unused connection
                    impl = (JDBCConnectionImpl) pool.elementAt(pool.size() - 1);
                    // remove connection from pool
                    pool.removeElementAt(pool.size() - 1);

                    // If the connection has closed then drop it and select
                    // another
                    if (impl.isClosed()) {
                      if (log.isDebugEnabled())
View Full Code Here

      if (v != null && v.size() > 0) {
        for (int i = (v.size() - 1); i >= 0; i--) {
          bundF = getBL(v.elementAt(i));
          if (bundF[LOCATION_POS].equals(bundleLocation)) {
            if (remove) {
              v.removeElementAt(i);
            } else {
              v.setElementAt(bundleLocation + ";"
                  + LogUtil.fromLevel(filter), i);
            }
            notFound = false;
View Full Code Here

                  "Undefined log level <" + bundle[FILTER_POS]
                      + "> specified for bundle <"
                      + bundle[LOCATION_POS] + ">.");
        }
        if (testFilter == 0) {
          v.removeElementAt(i);
          i--;
        } else {
          bundle[FILTER_POS] = LogUtil.fromLevel(testFilter);
          // There is no safe way to do any further validation of the
          // location since any string is a valid location.
View Full Code Here

  public MailFileSystemView() {
    Vector v = Pooka.getStoreManager().getStoreList();
    for (int i = v.size() - 1; i >= 0; i--) {
      StoreInfo current = (StoreInfo) v.elementAt(i);
      if (! current.isConnected())
        v.removeElementAt(i);
    }

    storeList = new StoreInfo[v.size()];
    for (int i = 0; i < v.size(); i++) {
      storeList[i] = (StoreInfo) v.elementAt(i);
View Full Code Here

       
        if (tempScreenVector.size() < 3){ return null;}
       
        // test to enxure the shape is closed.
        if ( ((ScreenPoint)tempScreenVector.elementAt(0)).equals((ScreenPoint) tempScreenVector.elementAt(tempScreenVector.size()-1))){
            tempScreenVector.removeElementAt(tempScreenVector.size()-1);
        }
        ScreenPoint[] tempScreenPoints = new ScreenPoint[tempScreenVector.size()];
        tempScreenVector.copyInto(tempScreenPoints);
        return tempScreenPoints;
    }
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

        {
            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)
                    ownerDocument().setEventListeners(this, null);

                // Remove active listener
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.