Package java.util

Examples of java.util.LinkedHashMap.keySet()


    map.put("UTF-16 BE BOM", new byte[] { (byte) 0xFE, (byte) 0xFF, 0, 'H', 0,
        'i' });
    map.put("UTF-16 LE", new byte[] { 'H', 0, 'i', 0 });
    map.put("UTF-16 BE", new byte[] { 0, 'H', 0, 'i' });

    for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
      String element = (String) iterator.next();
      System.out.println(element + ":");
      byte[] buffer = (byte[]) map.get(element);

      boolean bFirst0 = buffer[0] == 0;
View Full Code Here


          if (cactions != null){
                       if(pactions==null){
                            pactions=cactions;
                       
                        } else{
                            HashSet h=new HashSet(cactions.keySet());
                            h.retainAll(pactions.keySet());
                            Iterator it=pactions.keySet().iterator();
                            while(it.hasNext()){
                                if(!h.contains(it.next())){
                                    it.remove();
View Full Code Here

      if(pactions==null || pactions.isEmpty()){
        // no common actions
        return false;
      }
      final LinkedHashMap commonActions=pactions;
      Iterator it=commonActions.keySet().iterator();
      while(it.hasNext()){
        final String actionName =(String)it.next();
        Icon icon =(commonActions.get(actionName) instanceof Icon)(Icon)commonActions.get(actionName) : null;
        JMenuItem jmi = ActionPopup.createMenuItem(menu, actionName, icon);
        jmi.addActionListener(new CollectiveActionListener(x, y, getSelectedSource(), actionName))
View Full Code Here

                }
            }
        }

        // - second process and write any output from the defined resource locations.
        for (final Iterator iterator = locations.keySet().iterator(); iterator.hasNext();)
        {
            final String location = (String)iterator.next();
            final Collection contents = (Collection)locations.get(location);
            if (contents != null)
            {
View Full Code Here

        // build a stack of Association Request objects
        // and keep only the allowed by the configured preferences
        // the most-desirable entry is always at the top of the stack
        Stack reqStack = new Stack();
        Iterator iter = requests.keySet().iterator();
        while(iter.hasNext())
        {
            AssociationSessionType type = (AssociationSessionType) iter.next();

            // create the appropriate Association Request
View Full Code Here

                if (DEBUG)
                    _log.debug("Trying association type: " + assocReq.getType());

                // was this association / session type attempted already?
                if (alreadyTried.keySet().contains(assocReq.getType()))
                {
                    if (DEBUG) _log.debug("Already tried.");
                    continue;
                }
View Full Code Here

                    AssociationSessionType opType =
                            AssociationSessionType.create(
                                    assocErr.getSessionType(),
                                    assocErr.getAssocType());

                    if (alreadyTried.keySet().contains(opType))
                        continue;

                    // create the appropriate Association Request
                    AssociationRequest newReq =
                            createAssociationRequest(opType, opUrl);
View Full Code Here

                LinkedHashMap field = func.getFields();
                HashMap unit = func.getUnits();
                String key;

                System.out.println("<report>");
                for( Iterator it = field.keySet().iterator(); it.hasNext(); ) {
                    key = (String) it.next();
                    //System.out.println(key + "\t\t" + (String) field.get(key));
                    System.out.println("\t<parameter name=\""+ key +"\" value=\""+
                   (String) field.get(key) +"\" units=\""+ (String) unit.get(key)
                       +"\" />" );
View Full Code Here

        LinkedHashMap field = func.getFields();
        HashMap unit = func.getUnits();
        String key;

        System.out.println("<report>");
        for( Iterator it = field.keySet().iterator(); it.hasNext(); ) {
            key = (String) it.next();
            //System.out.println(key + "\t\t" + (String) field.get(key));
            System.out.println("\t<parameter name=\""+ key +"\" value=\""+
           (String) field.get(key) +"\" units=\""+ (String) unit.get(key)
           +"\" />" );
View Full Code Here

            !alreadyAdded.contains(getFieldName(impVO.getProgressiveFieldName(),tableName))) {
          insSQL += getFieldName(impVO.getProgressiveFieldName(),tableName) + ",";
          alreadyAdded.add(getFieldName(impVO.getProgressiveFieldName(),tableName));
          count++;
        }
        Iterator it = fieldsToAdd.keySet().iterator();
        while(it.hasNext()) {
           fieldName = it.next().toString();
           if (getFieldName(fieldName,tableName)!=null &&
               !alreadyAdded.contains(getFieldName(fieldName,tableName))) {
             insSQL += getFieldName(fieldName, tableName) + ",";
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.