Package java.util

Examples of java.util.TreeMap.values()


      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Entity");
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 4 ? 4 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
    while (i.hasNext() && count < 4) {
View Full Code Here


    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Individual", individualVO
        .getContactID());
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 8 ? 8 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
    while (i.hasNext() && count < 8) {
View Full Code Here

      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Individual");
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 8 ? 8 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
    while (i.hasNext() && count < 8) {
View Full Code Here

      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Entity", entityVO.getContactID());
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 4 ? 4 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
    while (i.hasNext() && count < 4) {
View Full Code Here

    }
    targetList.clear();
    // if descending we need to recreate keys that match the targetList
    // comparator. Otherwise the Keys made above will work for ascending
    if (sortType == 'D') {
      Collection sortedElements = intermediate.values();
      Iterator iterator = sortedElements.iterator();
      long i = 0;
      while (iterator.hasNext()) {
        Object Element = iterator.next();
        String key = CVUtility.leftZeroPad(i++, 10);
View Full Code Here

        final StyleMetaData style = styles[j];
        allStyles.put(style.getName(), style);
      }
    }

    final Iterator styleIt = allStyles.values().iterator();
    while (styleIt.hasNext())
    {
      StyleMetaData style = (StyleMetaData) styleIt.next();
      final String attrPrefix = "style." + style.getName();
      System.out.println(attrPrefix + ".display-name=" + style.getName());
View Full Code Here

            list.addElement("No Feature Types in FCA");
        } else {
            HtmlListElement flist = new HtmlListElement("Feature Types (from "
                    + buildURL(request, response, pathPrefix, "fca") + ")");
            list.addElement(flist);
            for (Iterator i = ftypeinfo.values().iterator(); i.hasNext();) {
                CoverageTable.FeatureClassRec fcr = (CoverageTable.FeatureClassRec) i.next();
                String name = fcr.feature_class.toLowerCase();
//                char t = fcr.type;
                String desc = fcr.description;
                String tstring = "[unknown] ";
View Full Code Here

            map.put(new Integer(pos), name);
            count++;
         }
         if (count != map.size())
            throw new Exception("Probably multiple tables '" + table + "' found since more columns with same ordinal position found");
         return (String[])map.values().toArray(new String[map.size()]);
      }
      finally {
         try {
            if (rs != null)
               rs.close();
View Full Code Here

         for (int j=0; j < nmax; j++) {
            Double newKey = new Double(random.nextDouble());
            newHosts.put(newKey, keys[i]);
         }
      }
      return (String[])newHosts.values().toArray(new String[newHosts.size()]);
   }
  
   public final String replace(String txt) {
      return this.replaceVariable.replace(txt, this.replacer);
   }
View Full Code Here

              if (existanceIndicators != null)
              { // some existance indicators depending on fields
                // on
                // this record type
                // Look if all of them point to existing fields.
                Iterator it = existanceIndicators.values()
                    .iterator();
                while (it.hasNext())
                { // loop over all existance indicators for
                  // each
                  // record type
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.