Examples of entrySet()


Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDMap.entrySet()

                throw new IllegalArgumentException("LLSD must be in the Map structure");

            OSDMap map = (OSDMap)osd;
            List<Primitive> prims = new ArrayList<Primitive>(map.count());

            for(Map.Entry<String, OSD> kvp : map.entrySet())
            {
                Primitive prim = Primitive.FromOSD(kvp.getValue());
                prim.LocalID = Long.parseLong(kvp.getKey());
                prims.add(prim);
            }
View Full Code Here

Examples of com.psddev.dari.db.State.entrySet()

            if (state.getId().equals(id)) {
                return object;
            }

            for (Map.Entry<String, Object> entry : state.entrySet()) {
                String name = entry.getKey();
                Object value = entry.getValue();
                ObjectField field = state.getField(name);
                Object found = findEmbedded(value, id, field != null && field.isEmbedded());
View Full Code Here

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

        }
    }

    private Row getDaoRow(SObject sob) {
        Row row = getMapper().mapPartnerSObjectSfdcToLocal(sob);
        for (Map.Entry<String, Object> ent : row.entrySet()) {
            Object newVal = convertFieldValue(ent.getValue());
            if (newVal != ent.getValue()) row.put(ent.getKey(), newVal);
        }
        return row;
    }
View Full Code Here

Examples of com.serotonin.json.type.JsonObject.entrySet()

    public void jsonRead(JsonReader reader, JsonObject jsonObject) throws JsonException {
        super.jsonRead(reader, jsonObject);

        JsonObject jsonChildren = jsonObject.getJsonObject("children");
        if (jsonChildren != null) {
            for (Map.Entry<String, JsonValue> jsonChild : jsonChildren.entrySet()) {
                CompoundChild child = getChild(jsonChild.getKey());
                if (child == null || !child.getViewComponent().isPointComponent())
                    throw new TranslatableJsonException("emport.error.compound.invalidChildId", jsonChild.getKey(),
                            definition().getId(), getPointComponentChildIds());
                jsonReadDataPoint(jsonChild.getValue(), (PointComponent) child.getViewComponent());
View Full Code Here

Examples of com.sleepycat.bdb.collection.StoredSortedMap.entrySet()

        StoredSortedMap other =
            (StoredSortedMap) StoredCollections.dirtyReadMap(map);
        assertTrue(other.isDirtyReadEnabled());
        assertTrue(((StoredContainer) other.values()).isDirtyReadEnabled());
        assertTrue(((StoredContainer) other.keySet()).isDirtyReadEnabled());
        assertTrue(((StoredContainer) other.entrySet()).isDirtyReadEnabled());
        assertTrue(!map.isDirtyReadEnabled());
        assertTrue(!((StoredContainer) map.values()).isDirtyReadEnabled());
        assertTrue(!((StoredContainer) map.keySet()).isDirtyReadEnabled());
        assertTrue(!((StoredContainer) map.entrySet()).isDirtyReadEnabled());
View Full Code Here

Examples of com.sleepycat.collections.StoredSortedMap.entrySet()

            StoredCollections.configuredMap
                (map, CursorConfig.READ_UNCOMMITTED);
        assertTrue(isReadUncommitted(other));
        assertTrue(isReadUncommitted(other.values()));
        assertTrue(isReadUncommitted(other.keySet()));
        assertTrue(isReadUncommitted(other.entrySet()));
        assertTrue(!isReadUncommitted(map));
        assertTrue(!isReadUncommitted(map.values()));
        assertTrue(!isReadUncommitted(map.keySet()));
        assertTrue(!isReadUncommitted(map.entrySet()));
View Full Code Here

Examples of com.springsource.insight.intercept.operation.OperationMap.entrySet()

    protected OperationMap assertCollectedEnvironment(Operation op, Map<?, ?> env) {
        OperationMap envMap = op.get("environment", OperationMap.class);
        assertNotNull("Missing environment in " + op.getLabel(), envMap);
        assertEquals("Mismatched environment size in " + op.getLabel(), MapUtil.size(env), envMap.size());

        Collection<? extends Map.Entry<String, ?>> envEntries = envMap.entrySet();
        Collection<Object> expKeys = new HashSet<Object>(env.keySet());
        for (Map.Entry<String, ?> ee : envEntries) {
            String key = ee.getKey();
            Object expected = env.get(key), actual = ee.getValue();
            assertEquals(op.getLabel() + ": Mismatched values for key=" + key, expected, actual);
View Full Code Here

Examples of com.sun.jersey.api.representation.Form.entrySet()

        request.setMethod(override);
        if (override.equals("GET")) {
            if (MediaTypes.typeEquals(MediaType.APPLICATION_FORM_URLENCODED_TYPE, request.getMediaType())) {
                UriBuilder ub = request.getRequestUriBuilder();
                Form f = request.getFormParameters();
                for (Map.Entry<String, List<String>> param : f.entrySet()) {
                    ub.queryParam(param.getKey(), param.getValue().toArray());
                }
                request.setUris(request.getBaseUri(), ub.build());
            }
        }
View Full Code Here

Examples of com.sun.jmx.remote.util.CacheMap.entrySet()

                               map.size() + " (surprising but not wrong)");
        } else
            System.out.println("Map shrank to cache size as expected");
        int lowest = size - cacheSize;
        // lowest value that can still be in cache if LRU is respected
        for (Iterator it = map.entrySet().iterator(); it.hasNext(); ) {
            Map.Entry entry = (Map.Entry) it.next();
            Integer x = (Integer) entry.getKey();
            int xx = x.intValue();
            if (xx < lowest || xx >= size) {
                System.out.println("Old value remained (" + x + "), " +
View Full Code Here

Examples of com.sun.messaging.jmq.util.PHashMap.entrySet()

  if (w != null) {
      logger.log(logger.WARNING,
      "possible loss of consumer data", w);
  }

  Iterator itr = olddata.entrySet().iterator();
  while (itr.hasNext()) {
      Map.Entry entry = (Map.Entry)itr.next();
      Object key = entry.getKey();
      Object value = entry.getValue();
      interestMap.put(key, value);
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.