Examples of entrySet()


Examples of grails.web.servlet.mvc.GrailsParameterMap.entrySet()

        Object value = entry.getValue();
        if (value == null) value = "";
        else if (value instanceof GrailsParameterMap) {
            GrailsParameterMap child = (GrailsParameterMap)value;
            Set nestedEntrySet = child.entrySet();
            for (Iterator i = nestedEntrySet.iterator(); i.hasNext();) {
                Map.Entry childEntry = (Map.Entry) i.next();
                appendEntry(childEntry, queryString, encoding, entry.getKey().toString() + '.');
                boolean hasMore = i.hasNext();
                if (hasMore) queryString.append('&');
View Full Code Here

Examples of hudson.matrix.Combination.entrySet()

                TreeNodeMetadataValue combinationNode = path[1];
                Combination combination = configuration.getCombination();
                //ToString version of the combination in job-info.matrix.combination.value
                TreeStructureUtil.addValue(combinationNode, combination.toString(',', ':'), "", "value");
                //Each axis in job-info.matrix.combination.[name]=[value]
                for (Map.Entry<String, String> axis : combination.entrySet()) {
                    TreeStructureUtil.addValue(combinationNode, axis.getValue(), "", "axis", axis.getKey());
                }
                jobInfo.addChild(matrixNode);
            }
            logger.finer("Adding standard generated metadata");
View Full Code Here

Examples of info.ata4.unity.serdes.db.FieldTypeMap.entrySet()

        FieldTypeMap ftm = StructDatabase.getInstance().getFieldTypeMap();
        Set<TypeField> fieldNodes = new HashSet<>();
        Set<UnityVersion> versions = new TreeSet<>();
        Set<Integer> classIDs = new TreeSet<>();

        for (Map.Entry<Pair<Integer, UnityVersion>, TypeField> entry : ftm.entrySet()) {
            versions.add(entry.getKey().getRight());
            classIDs.add(entry.getKey().getLeft());
            fieldNodes.add(entry.getValue());
        }
       
View Full Code Here

Examples of jade.util.leap.Properties.entrySet()

   
    // User defined slots
    Properties props = aid.getAllUserDefinedSlot();
    if (props.size() > 0) {
      pss.stm_insAgentUserDefSlot.clearBatch();
      java.util.Iterator pIter = props.entrySet().iterator();
      while (pIter.hasNext()) {
        Map.Entry entry = (Map.Entry)pIter.next();
        pss.stm_insAgentUserDefSlot.setString(1, getGUID());
        pss.stm_insAgentUserDefSlot.setString(2, name);
        pss.stm_insAgentUserDefSlot.setString(3, (String)entry.getKey());
View Full Code Here

Examples of java.awt.RenderingHints.entrySet()

  public void test(TestHarness harness) {

    RenderingHints h1 = new RenderingHints(
      RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
    );
    Set s = h1.entrySet();
    harness.check(s.size() == 1);
   
    h1.clear();
    s = h1.entrySet();
    harness.check(s.isEmpty());
View Full Code Here

Examples of java.security.Provider.entrySet()

    Provider[] allProviders = Security.getProviders();

    // Add all non-alias entries to allSupported
    for (int i = 0; i < allProviders.length; i++) {
      Provider provider = allProviders[i];
      Iterator it = provider.entrySet().iterator();
      while (it.hasNext()) {
        Map.Entry entry = (Map.Entry) it.next();
        String key = (String) entry.getKey();
        // No aliases and no provider data
        if (!isAlias(key) && !isProviderData(key)) {
View Full Code Here

Examples of java.util.AbstractMap.entrySet()

  @SuppressWarnings("rawtypes")
  public void marshal(Object value, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    AbstractMap map = (AbstractMap) value;
    for (Object obj : map.entrySet()) {
      Entry entry = (Entry) obj;
      writer.startNode(entry.getKey().toString());
      if (entry.getValue() instanceof String) {
        writer.setValue(entry.getValue().toString());
      } else if (entry.getValue() instanceof Map) {
View Full Code Here

Examples of java.util.Collection.entrySet()

                elementName = "map-Map";
            }

            Element element = document.createElement(elementName);
            Map value = (Map) object;
            Iterator iter = value.entrySet().iterator();

            while (iter.hasNext()) {
                Map.Entry entry = (Map.Entry) iter.next();

                Element entryElement = document.createElement("map-Entry");
View Full Code Here

Examples of java.util.EnumMap.entrySet()

        assertEquals("Wrong size", 0, set.size()); //$NON-NLS-1$

        enumSizeMap = new EnumMap(Size.class);
        enumSizeMap.put(Size.Middle, 1);
        enumSizeMap.put(Size.Big, null);
        set = enumSizeMap.entrySet();
        Collection c = new ArrayList();
        c.add(new MockEntry(Size.Middle, 1));
        assertTrue("Return wrong value", set.containsAll(c)); //$NON-NLS-1$
        assertTrue("Remove does not success", set.removeAll(c)); //$NON-NLS-1$
View Full Code Here

Examples of java.util.HashMap.entrySet()

        IntHashtable pages = new IntHashtable();
        int numPages = reader.getNumberOfPages();
        for (int k = 1; k <= numPages; ++k)
            pages.put(reader.getPageOrigRef(k).getNumber(), k);
        HashMap names = fromNames ? reader.getNamedDestinationFromNames() : reader.getNamedDestinationFromStrings();
        for (Iterator it = names.entrySet().iterator(); it.hasNext();) {
            Map.Entry entry = (Map.Entry)it.next();
            ArrayList arr = ((PdfArray)entry.getValue()).getArrayList();
            StringBuffer s = new StringBuffer();
            try {
                s.append(pages.get(((PdfIndirectReference)arr.get(0)).getNumber()));
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.