Package java.util

Examples of java.util.Vector.removeElement()


    Long   seqno;

    if(v != null && seqnos != null) {
        for(int i=0; i < seqnos.size(); i++) {
        seqno=(Long)seqnos.elementAt(i);
        v.removeElement(seqno);
        }
    }
    }

View Full Code Here


  }
  public void execute(String commandName, ConsoleInput console, List args) {
    startNow = false;
    Vector newargs = new Vector(args);
    if (!newargs.isEmpty() && newargs.contains("now") ) {
      newargs.removeElement("now");
      startNow = true;
    }
    super.execute(commandName, console, args);
  }
  protected boolean performCommand(ConsoleInput ci, DownloadManager dm, List args)
View Full Code Here

    mode = MODE_ON;
    Vector newargs = new Vector(args);
    if (newargs.isEmpty()) {
      mode = MODE_FLIP;
    } else if (newargs.contains("off")) {
      newargs.removeElement("off");
      mode = MODE_OFF;
    } else if (!newargs.contains("on")) {
      mode = MODE_FLIP;
    }
    super.execute(commandName, ci, args);
View Full Code Here

            }
          }
          if (vecView.contains(new Integer(indID.intValue())) && vecSchedule.contains(new Integer(indID.intValue()))) {
            vecAll.addElement(new Integer(indID.intValue()));
            vecView.removeElement(new Integer(indID.intValue()));
            vecSchedule.removeElement(new Integer(indID.intValue()));
          }
        } // end while (it.hasNext())
      } // end if (col != null)

      if (moduleName.equals(Constants.ACTIVITYMODULE)) {
View Full Code Here

    public static void removeProtocolPrefix(String prefix, boolean commit) {
        Vector packagePrefix =
            PackageManager.getProtocolPrefixList();

        if( packagePrefix.contains(prefix) ) {
            packagePrefix.removeElement(prefix);
            PackageManager.setProtocolPrefixList(packagePrefix);
            if( commit ) {
                PackageManager.commitProtocolPrefixList();
            }
        }
View Full Code Here

    public static void removeContentPrefix(String prefix, boolean commit) {
        Vector packagePrefix =
            PackageManager.getContentPrefixList();

        if( packagePrefix.contains(prefix) ) {
            packagePrefix.removeElement(prefix);
            PackageManager.setContentPrefixList(packagePrefix);
            if( commit ) {
                PackageManager.commitContentPrefixList();
            }
        }
View Full Code Here

    public static void removeProtocolPrefix(String prefix, boolean commit) {
        Vector packagePrefix =
            PackageManager.getProtocolPrefixList();

        if( packagePrefix.contains(prefix) ) {
            packagePrefix.removeElement(prefix);
            PackageManager.setProtocolPrefixList(packagePrefix);
            if( commit ) {
                PackageManager.commitProtocolPrefixList();
            }
        }
View Full Code Here

    public static void removeContentPrefix(String prefix, boolean commit) {
        Vector packagePrefix =
            PackageManager.getContentPrefixList();

        if( packagePrefix.contains(prefix) ) {
            packagePrefix.removeElement(prefix);
            PackageManager.setContentPrefixList(packagePrefix);
            if( commit ) {
                PackageManager.commitContentPrefixList();
            }
        }
View Full Code Here

                v.addElement (name);
            }
        }
        while (!v.isEmpty ()) {
            Object name = v.firstElement ();
            v.removeElement (name);
            notations.remove (name);
        }

        return true;
    }
View Full Code Here

        ConfigurationDictionary d = loadConfigurationDictionary(fileName);
        uncacheConfigurationDictionary(fileName);
        String fpid = (String) d.get(ConfigurationAdmin.SERVICE_FACTORYPID);
        if (fpid != null) {
            Vector v = (Vector) factoryPidToPids.get(fpid);
            if (v.removeElement(pid)) {
                storeHashtable(factoryPidToPids, factoryPidDataFile);
            }
        }

        File f = new File(storeDir, fileName);
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.