Examples of entrySet()


Examples of org.infinispan.commons.util.TypedProperties.entrySet()

      this.index = template.index();
      this.properties = new Properties();

      TypedProperties templateProperties = template.properties();
      if (templateProperties != null) {
         for (Map.Entry entry : templateProperties.entrySet()) {
            properties.put(entry.getKey(), entry.getValue());
         }
      }

      return this;
View Full Code Here

Examples of org.infinispan.container.DataContainer.entrySet()

      TestingUtil.waitForRehashToComplete(cache(0), cache(1), cache(2));

      // at this point state transfer is fully done
      log.infof("Data container of NodeA has %d keys: %s", dc0.size(), dc0.entrySet());
      log.infof("Data container of NodeB has %d keys: %s", dc1.size(), dc1.entrySet());
      log.infof("Data container of NodeC has %d keys: %s", dc2.size(), dc2.entrySet());

      if (op == Operation.CLEAR || op == Operation.REMOVE) {
         // caches should be empty. check that no keys were revived by an inconsistent state transfer
         for (int i = 0; i < numKeys; i++) {
            assertNull(dc0.get(i));
View Full Code Here

Examples of org.infinispan.util.TypedProperties.entrySet()

      this.indexLocalOnly = template.indexLocalOnly();
      this.properties = new Properties();

      TypedProperties templateProperties = template.properties();
      if (templateProperties != null) {
         for (Map.Entry entry : templateProperties.entrySet()) {
            properties.put(entry.getKey(), entry.getValue());
         }
      }

      return this;
View Full Code Here

Examples of org.ini4j.Ini.entrySet()

    }

    Ini ini = getIniForPreferenceFile(preferenceFile);

    // Add each preference entry
    for (Map.Entry<String, Profile.Section> section : ini.entrySet()) {
      for (Map.Entry<String, String> entry : section.getValue().entrySet()) {
        set(section.getValue().getName(), entry.getKey(), entry.getValue());
      }
    }
  }
View Full Code Here

Examples of org.ini4j.Profile.Section.entrySet()

    Set<String> sections = ini.keySet();
    for (String sectionName : sections) {
      StringBuilder strbuilder = new StringBuilder();
      Map<String, String> params = new HashMap<String, String>();     
      Section currentsection = ini.get(sectionName);
      Set<Entry<String,String>> entrySet = currentsection.entrySet();
      String currentContent = contentUnparsed;
      for (Entry<String,String> entry : entrySet) {
        currentContent = currentContent.replace("${"+entry.getKey()+"}", entry.getValue());
      }
      strbuilder.append(currentContent);
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractMapMetaData.entrySet()

         throw new IllegalArgumentException("Null name");
      PropertyMetaData properties = getProperty("properties");
      if (properties == null)
         return null;
      AbstractMapMetaData map = (AbstractMapMetaData) properties.getValue();
      for (Iterator<Map.Entry<MetaDataVisitorNode, MetaDataVisitorNode>> i = map.entrySet().iterator(); i.hasNext();)
      {
         Map.Entry<MetaDataVisitorNode, MetaDataVisitorNode> entry = i.next();
         ValueMetaData key = (ValueMetaData) entry.getKey();
         if (key.getUnderlyingValue().equals(name))
         {
View Full Code Here

Examples of org.jboss.portal.portlet.state.PropertyMap.entrySet()

         dos.writeInt(MAGIC_VALUE);
         dos.write(VERSION_ID);
         dos.writeUTF(state.getPortletId());
         PropertyMap map = state.getProperties();
         dos.writeInt(map.size());
         for (Map.Entry<String, List<String>> entry : map.entrySet())
         {
            String key = entry.getKey();
            List<String> value = entry.getValue();
            String[] strings = value.toArray(new String[value.size()]);
            dos.writeUTF(key);
View Full Code Here

Examples of org.jboss.seam.excel.css.StyleMap.entrySet()

   {
      Map<Integer, Integer> columnWidths = new HashMap<Integer, Integer>();
      Parser parser = new Parser();

      StyleMap styleMap = parser.getCascadedStyleMap(worksheet);
      for (Map.Entry<String, Object> entry : styleMap.entrySet())
      {
         String key = entry.getKey();
         if (key.startsWith(CSSNames.COLUMN_WIDTHS))
         {
            String columnIndexString = key.substring(CSSNames.COLUMN_WIDTHS.length());
View Full Code Here

Examples of org.jboss.test.xml.pojoserver.metadata.AbstractMapMetaData.entrySet()

      assertEquals("properties", propsProp.getName());
      AbstractMapMetaData beanProps = (AbstractMapMetaData) propsProp.getValue();
      assertNotNull(beanProps);
      assertEquals(1, beanProps.size());
      Map.Entry entry = (Map.Entry) beanProps.entrySet().iterator().next();
      AbstractValueMetaData otherKey = (AbstractValueMetaData) entry.getKey();
      assertNotNull(otherKey);
      assertEquals("other", otherKey.getValue());
      AbstractValueMetaData otherValue = (AbstractValueMetaData) entry.getValue();
      assertNotNull(otherValue);
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.entrySet()

      String bucketName = getContainerName();
      try {
         final BlobMap map = createMap(view, bucketName);
         putFiveStrings(map);
         assertConsistencyAwareMapSize(map, 5);
         Set<Entry<String, Blob>> entries = map.entrySet();
         assertEquals(entries.size(), 5);
         for (Entry<String, Blob> entry : entries) {
            assertEquals(fiveStrings.get(entry.getKey()), getContentAsStringOrNullAndClose(entry.getValue()));
            Blob blob = entry.getValue();
            blob.setPayload("");
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.