Package java.util

Examples of java.util.Map.keySet()


          }
          continue;
        }

        Map map = (Map) lgmap.get(key);
        Iterator it = map.keySet().iterator();

        while (it.hasNext()) {
          CalendarActivityObject cao = (CalendarActivityObject) map.get(it.next());
          ArrayList activitiesAttendeesList = cao.getActivityAttendee();
          if ("PRIVATE".equals(cao.getActivityVisibility()) && cao.getActivityOwnerId() != individualID
View Full Code Here


    Map map = mapper.map(list, HashMap.class);
   
    assertNotNull(map);
    assertEquals(3, map.size());
    assertTrue(map.keySet().contains(b1));
    assertTrue(map.keySet().contains(b2));
    assertTrue(map.keySet().contains(b3));
    assertEquals(b1.getA(), ((BeanB) map.get(b1)).getA().toString());
    assertEquals(b2.getA(), ((BeanB) map.get(b2)).getA().toString());
    assertEquals(b3.getA(), ((BeanB) map.get(b3)).getA().toString());
View Full Code Here

    Map map = mapper.map(list, HashMap.class);
   
    assertNotNull(map);
    assertEquals(3, map.size());
    assertTrue(map.keySet().contains(b1));
    assertTrue(map.keySet().contains(b2));
    assertTrue(map.keySet().contains(b3));
    assertEquals(b1.getA(), ((BeanB) map.get(b1)).getA().toString());
    assertEquals(b2.getA(), ((BeanB) map.get(b2)).getA().toString());
    assertEquals(b3.getA(), ((BeanB) map.get(b3)).getA().toString());
  }
View Full Code Here

   
    assertNotNull(map);
    assertEquals(3, map.size());
    assertTrue(map.keySet().contains(b1));
    assertTrue(map.keySet().contains(b2));
    assertTrue(map.keySet().contains(b3));
    assertEquals(b1.getA(), ((BeanB) map.get(b1)).getA().toString());
    assertEquals(b2.getA(), ((BeanB) map.get(b2)).getA().toString());
    assertEquals(b3.getA(), ((BeanB) map.get(b3)).getA().toString());
  }
View Full Code Here

     
      HashSet testNames = new HashSet();
        Iterator i = chainOfMappings.iterator();
        while (i.hasNext()) {
            Map aMapping = (Map) i.next();
      testNames.addAll(aMapping.keySet());
        }     
    return propNames.containsAll(testNames);
  }

  /**
 
View Full Code Here

            trackers.add(tracker);
          }
        }
        Map mapMT = (Map) map.get("multi-trackers");
        if(mapMT != null) {
          Iterator iter = mapMT.keySet().iterator();
          while(iter.hasNext()) {
            String configName =  (String) iter.next();           
            List groups = (List) mapMT.get(configName);
            List resGroups = new ArrayList(groups.size());
            Iterator iterGroups = groups.iterator();
View Full Code Here

  }
 
  private void refreshList(String toBeSelected) {
    Map multiTrackers = TrackersUtil.getInstance().getMultiTrackers();
    configList.removeAll();
    Iterator iter = multiTrackers.keySet().iterator();
    while(iter.hasNext()) {
      configList.add((String)iter.next());
    }
    int selection = configList.indexOf(toBeSelected);
    if(selection != -1) {
View Full Code Here

  }
 
  private void refreshList(String toBeSelected) {
    Map webseeds = TrackersUtil.getInstance().getWebSeeds();
    configList.removeAll();
    Iterator iter = webseeds.keySet().iterator();
    while(iter.hasNext()) {
      configList.add((String)iter.next());
    }
    int selection = configList.indexOf(toBeSelected);
    if(selection != -1) {
View Full Code Here

    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 (uiFunctions != null) {
      UISWTInstanceImpl pluginUI = uiFunctions.getSWTPluginInstanceImpl();
      Map pluginViews = pluginUI == null ? null
          : pluginUI.getViewListeners(UISWTInstance.VIEW_MYTORRENTS);
      if (pluginViews != null) {
        String[] sNames = (String[]) pluginViews.keySet().toArray(new String[0]);
        for (int i = 0; i < sNames.length; i++) {
          UISWTViewEventListener l = (UISWTViewEventListener) pluginViews.get(sNames[i]);
          if (l != null) {
            try {
              UISWTViewImpl view = new UISWTViewImpl(
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.