Package java.util

Examples of java.util.TreeSet.toArray()


        certNum = certs.size();
        if (certNum != 0) {
            TreeSet tscerts = new TreeSet(certs);

            certList.setListData(tscerts.toArray());
            certList.setSelectedIndex(0);
        } else {
            certList.setModel(new DefaultListModel());
        }
View Full Code Here


        List hosts = controller.getHostList();

        if (hosts != null) {
            TreeSet tshosts = new TreeSet(hosts);
            Object[] objs = tshosts.toArray();

            hostList.setModel(new DefaultComboBoxModel(objs));
            if (objs.length > 0) {
                controller.setHostName((String) objs[0]); // default value.
            }
View Full Code Here

        if (hosts != null) {
            hostNum = hosts.size();
            if (hostNum != 0) {
                TreeSet tshosts = new TreeSet(hosts);

                hostList.setListData(tshosts.toArray());
                hostList.setSelectedIndex(0);
            } else {
                hostList.setModel(new DefaultListModel());
            }
View Full Code Here

      String[] names = cgs[i].getNames();
      for (int j = 0; j < names.length; j++) {
        results.add(names[j]);
      }
    }
    return (String[]) results.toArray(stringArray0);
  }

  public void removeCommonParmSettingsFromMultipleGroups() {
    ConfigurationParameterSettings modelSettings = getModelSettings();
    String[] allGroupNames = getAllGroupNames();
View Full Code Here

                && !"".equals(sofaMapping.getComponentSofaName()))
          bindings.add(sofaMapping.getComponentKey() + '/' + sofaMapping.getComponentSofaName());
        else
          bindings.add(sofaMapping.getComponentKey());
    }
    String[] results = (String[]) bindings.toArray(stringArray0);
    Arrays.sort(results);
    return results;
  }

  /*
 
View Full Code Here

                String[] eventUsecases = this.usecase.getUsecases(events[i]);
                usecases.addAll(Arrays.asList(eventUsecases));
            }
        }

        return (String[]) usecases.toArray(new String[usecases.size()]);
    }
   
    /**
     * @return The languages of the document in alphabetical order.
     * @throws DocumentException
View Full Code Here

            String usecase = (String) i.next();
            if (this.usecase2event.get(usecase).equals(event)) {
                usecases.add(usecase);
            }
        }
        return (String[]) usecases.toArray(new String[usecases.size()]);
    }

}
View Full Code Here

                    }
                }
            }
           
            // Form array of commenter addrs
            String[] commenterAddrs = (String[])subscribers.toArray(new String[0]);
           
            //------------------------------------------
            // --- Form the messages to be sent -
            // For simplicity we always build separate owner and commenter messages even if sending a single one
           
View Full Code Here

                if (allUsecases[i].indexOf("/") == -1) {
                    rootUsecases.add(allUsecases[i]);
                }
            }
           
            String[] usecases = (String[]) rootUsecases.toArray(new String[rootUsecases.size()]);
           
            setParameter("usecases", usecases);

            Role[] roles = getAccessController().getAccreditableManager().getRoleManager()
                    .getRoles();
View Full Code Here

    Set result = new TreeSet();
    for (int i = 0; i < s1.length; i++)
      result.add(s1[i]);
    for (int i = 0; i < s2.length; i++)
      result.remove(s2[i]);
    return (String[]) result.toArray(stringArray0);
  }

  private boolean setEqual(String[] s1, String[] s2) {
    if (null == s1 && null == s2)
      return true;
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.