Examples of keySet()


Examples of EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.keySet()

                        prodNameMap.put(ProducerName, (null));
                    }

                    //Get the current size of consumer
                    int seqVal = 0;
                    Object[] cObj = consumerMap.keySet().toArray();
                    for (int k = 0; k < cObj.length; k++) {
                        String cMapKey = (String)cObj[k];
                        Map cMapVal = (Map)consumerMap.get(cObj[k]);
                        if (cMapKey.equals(ConsumerName)) {
                            seqVal = cMapVal.size();

Examples of aQute.bnd.header.Parameters.keySet()

                if (m != null) {
                    Domain domain = Domain.domain(m);
                    Parameters imports = domain.getImportPackage();
                    Parameters exports = domain.getExportPackage();
                    for (String p : exports.keySet()) {
                        if (imports.containsKey(p)) {
                            Attrs attrs = imports.get(p);
                            if (attrs.containsKey(VERSION_ATTRIBUTE)) {
                                exports.get(p).put("imported-as", attrs.get(VERSION_ATTRIBUTE));
                            }

Examples of aQute.bnd.osgi.Packages.keySet()

                                // Seems to be an invalid export, ignore it...
                            }
                        }
                    }
                    Packages contained = builder.getContained();
                    for (PackageRef pkgRef : contained.keySet()) {
                        String pkgName = Processor.removeDuplicateMarker(pkgRef.getFQN());
                        allContained.add(pkgName);
                    }
                } catch (Exception e) {
                    logger.logWarning(MessageFormat.format("Unable to process exported packages for builder of {0}.", builder.getPropertiesFile()), e);

Examples of cc.mallet.grmm.util.THashMultiMap.keySet()

  {
    THashMultiMap fvByWord = constructFvByWord (fvs);

    int numSkip = 0;

    for (Iterator it = fvByWord.keySet ().iterator (); it.hasNext ();) {
      String wordFeature = (String) it.next ();
      List infoList = (List) fvByWord.get (wordFeature);
      int N = infoList.size ();

      if (debug && N > 1) System.err.print ("Processing list of size "+N+" ("+wordFeature+")");

Examples of ch.cmbntr.modulizer.bootstrap.BootstrapContext.keySet()

  protected static List<String> findMatchingContextKeys(final Pattern check) {
    final List<String> matches = new LinkedList<String>();
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    if (ctx != null) {
      for (final String k : ctx.keySet()) {
        if (check.matcher(k).matches()) {
          matches.add(k);
        }
      }
    }

Examples of com.addthis.maljson.JSONObject.keySet()

        String classField = classInfo.getClassField();
        String stype = jsonObj.optString(classField, null);
        if ((stype == null) && Modifier.isAbstract(type.getModifiers()) &&
            (jsonObj.length() == 1)) {
            // if otherwise doomed to fail, try supporting "type-value : {...}"  syntax
            stype = jsonObj.keySet().iterator().next();
            jsonObj = jsonObj.getJSONObject(stype);
        }
        try {
            if (stype != null) {
                Class<?> atype = classInfo.getClass(stype);

Examples of com.alibaba.citrus.service.requestcontext.parser.ParameterParser.keySet()

        }

        // setParameter
        ParameterParser params = rundata.getParameters();

        for (String key : params.keySet()) {
            Object[] values = params.getObjects(key);

            switch (values.length) {
                case 0:
                    break;

Examples of com.alibaba.fastjson.JSONObject.keySet()

    public void test_order() throws Exception {
        JSONObject json = new JSONObject(true);
        json.put("C", 55L);
        json.put("B", 55);
        json.put("A", 55);
        Assert.assertEquals("C", json.keySet().toArray()[0]);
        Assert.assertEquals("B", json.keySet().toArray()[1]);
        Assert.assertEquals("A", json.keySet().toArray()[2]);

        Assert.assertEquals(0, json.getIntValue("D"));
        Assert.assertEquals(0L, json.getLongValue("D"));

Examples of com.barrybecker4.game.multiplayer.poker.ui.chips.PokerChips.keySet()

        int x;
        int width;
        int height = 0;
        int y = cellSize * location.getRow();

        for (PokerChip chipType : chips.keySet()) {

            int numChips = chips.get(chipType);
            height = (int)(cellSize * numChips * CHIP_HEIGHT);
            width = (int)(CHIP_PILE_WIDTH * cellSize);
            g2.setColor(chipType.getColor());

Examples of com.bergerkiller.bukkit.common.collections.EntityMap.keySet()

        while (iter.hasNext()) {
          EntityMap map = iter.next().get();
          if (map == null) {
            iter.remove();
          } else if (!map.isEmpty()) {
            map.keySet().removeAll(removed);
          }
        }
        // Fire events
        if (CommonUtil.hasHandlers(EntityRemoveFromServerEvent.getHandlerList())) {
          for (org.bukkit.entity.Entity e : removed) {
TOP
Copyright © 2015 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.