Examples of removeElementAt()


Examples of abstrasy.Node.removeElementAt()

            for (int i = 0; i < s1.size(); i++) {
                Node ltmp = s1.elementAt(i);
                for (int j = 0; j < ltmp.size(); j++) {
                    if (Node.equalsNodes(a, ltmp.elementAt(j))) {
                        ltmp.removeElementAt(j--);
                    }
                }
            }

            int nmx = -1;
View Full Code Here

Examples of bak.pcj.list.IntList.removeElementAt()

        int[] l = dataSet.get(0);
        int size = l.length;
        startTimer();
        for (int i = 0; i < SMALL_SIZE; i++) {
            if (size == 0) break;
            c.removeElementAt(size/2);
            size--;
        }
        stopTimer();
        return SMALL_SIZE + " calls to removeElementAt(int) at middle of list with " + l.length + " existing elements";
    }
View Full Code Here

Examples of charvax.swing.DefaultListModel.removeElementAt()

                // We must remove the last elements first, otherwise
                // (if we remove an element with a low index), the
                // higher indices will be invalid.
                for (int i = indices.length - 1; i >= 0; i--) {
                    model.removeElementAt(indices[ i]);
                }

                // Having deleted some elements from the list, we must
                // ensure that:
                // (a) the first index inside the visible area is >= 0
View Full Code Here

Examples of com.nexirius.util.StringVector.removeElementAt()

                while (fieldName != null) {
                    sv.insertElementAt(fieldName.toString(), 0);
                    fieldName = fieldName.getParent();
                }

                sv.removeElementAt(0);

                String names[] = sv.getArray();

                return model.getChild(names);
            } catch (Exception ex) {
View Full Code Here

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

Examples of java.util.Vector.removeElementAt()

  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

Examples of java.util.Vector.removeElementAt()

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

View Full Code Here

Examples of java.util.Vector.removeElementAt()

                    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

Examples of java.util.Vector.removeElementAt()

      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

Examples of java.util.Vector.removeElementAt()

                  "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
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.