Examples of keySet()


Examples of com.mchange.v2.util.DoubleWeakHashMap.keySet()

        Map m = new DoubleWeakHashMap();
        m.put(a, poop);
        m.put(b, scoop);
        m.put(c, doop);
        assertEquals("Size should be three, viewed via Map directly.", m.size(), 3);
        assertEquals("Size should be three, viewed via keySet .", m.keySet().size(), 3);
        assertEquals("Size should be three, viewed via values Collection.", m.values().size(), 3);
       
        int count = 0;
        for (Iterator ii = m.keySet().iterator(); ii.hasNext();)
        {

Examples of com.mongodb.BasicDBObject.keySet()

        }

        @Override
        public StringEntryIterator readStringMap(String key) throws Exception {
            final BasicDBObject childObj = (BasicDBObject) obj.get(encodeName(key));
            final Iterator<String> it = childObj.keySet().iterator();
            return new StringEntryIterator() {
                @Override
                public boolean hasNext() {
                    return it.hasNext();
                }

Examples of com.mongodb.CommandResult.keySet()

                throw new DatabaseException(ErrorCodes.DB_DOES_NOT_EXISTS, "DB with name '" + dbName + "'  DOES NOT EXIST");
            }

            DB db = mongoInstance.getDB(dbName);
            CommandResult stats = db.getStats();
            Set<String> keys = stats.keySet();

            Iterator<String> keyIterator = keys.iterator();

            while (keyIterator.hasNext()) {
                JSONObject temp = new JSONObject();

Examples of com.mongodb.DBObject.keySet()

            }

            Object paramsValue = result.get(FIELD_PARAMS);
            if (paramsValue instanceof DBObject) {
                DBObject params = (DBObject) paramsValue;
                for (String key : params.keySet()) {
                    state.setParameter(key, params.get(key).toString().trim());
                }

            }

Examples of com.netflix.zeno.diff.DiffRecordValueListMap.keySet()

                    }
                }
            }
        }

        for(DiffPropertyPath key : map2.keySet()) {
            List<Object> list1 = map1.getList(key);

            if(list1 == null) {
                List<Object> list2 = map2.getList(key);
                xorCardinality += list2.size();

Examples of com.newrelic.org.json.simple.JSONObject.keySet()

        String path = !pathTmp.startsWith("/") ? "/"+pathTmp: pathTmp;
        String method = json.containsKey("httpMethod") ? (String)json.get("httpMethod") : "-";
        long status = json.containsKey("httpStatus") ? (Long)json.get("httpStatus") : 999;
        long totaltime = 0;
 
        for (Object key : timespent.keySet()) {
          Object timeObj = timespent.get(key);
          Long time = 0L;
         
          if (timeObj instanceof Double) {
            time = (long) (((Double) timeObj)*1000);         
 

Examples of com.ning.http.client.FluentCaseInsensitiveStringsMap.keySet()

            }

            if (!method.equalsIgnoreCase("CONNECT")) {
                FluentCaseInsensitiveStringsMap h = request.getHeaders();
                if (h != null) {
                    for (String name : h.keySet()) {
                        if (!"host".equalsIgnoreCase(name)) {
                            for (String value : h.get(name)) {
                                urlConnection.setRequestProperty(name, value);
                                if (name.equalsIgnoreCase("Expect")) {
                                    throw new IllegalStateException("Expect: 100-Continue not supported");

Examples of com.opengamma.analytics.financial.greeks.GreekResultCollection.keySet()

  @Test
  public void testPriceOnly() {
    final GreekResultCollection result = MODEL.getGreeks(new EuropeanVanillaOptionDefinition(100, new Expiry(DateUtils.getUTCDate(2010, 1, 1)), true), new StandardOptionDataBundle(null, 0, null, 100,
        DateUtils.getUTCDate(2010, 1, 1)), Sets.newHashSet(Greek.FAIR_PRICE, Greek.DELTA, Greek.GAMMA));
    assertEquals(result.size(), 1);
    assertEquals(result.keySet().iterator().next(), Greek.FAIR_PRICE);
    assertEquals(result.values().iterator().next(), 2., 0);
  }

  private static class DummyModel extends MonteCarloOptionModel<OptionDefinition, StandardOptionDataBundle> {

Examples of com.puppetlabs.geppetto.forge.model.Metadata.keySet()

      File fromFile = x.getKey();
      Multimap<File, Export> m = x.getValue();

      // get any ambiguities
      Multimap<File, Export> ambiguitiesForFile = ambiguities.get(fromFile);
      for(File toFile : m.keySet()) {
        createImportEdge(
          file2Module(fromFile, fileIndex), file2Module(toFile, fileIndex), m.get(toFile),
          ambiguitiesForFile != null
              ? ambiguitiesForFile.get(toFile)
              : null);

Examples of com.salesforce.dataloader.model.Row.keySet()

        CSVFileWriter writer = null;
        try {
            writer = new CSVFileWriter(CSV_FILE_PATH, getController().getConfig());
            writer.open();
            writer.setColumnNames(new ArrayList<String>(row.keySet()));
            writer.writeRow(row);
        } finally {
            if (writer != null) writer.close();
        }
    }
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.