Examples of entrySet()


Examples of net.minecraft.util.com.google.gson.JsonObject.entrySet()

    private void a(ChatModifier chatmodifier, JsonObject jsonobject, JsonSerializationContext jsonserializationcontext) {
        JsonElement jsonelement = jsonserializationcontext.serialize(chatmodifier);

        if (jsonelement.isJsonObject()) {
            JsonObject jsonobject1 = (JsonObject) jsonelement;
            Iterator iterator = jsonobject1.entrySet().iterator();

            while (iterator.hasNext()) {
                Entry entry = (Entry) iterator.next();

                jsonobject.add((String) entry.getKey(), (JsonElement) entry.getValue());
View Full Code Here

Examples of net.myrrix.common.collection.FastByIDFloatMap.entrySet()

      }
    } finally {
      yReadLock.unlock();
    }

    return TopN.selectTopN(new MostPopularItemsIterator(itemCounts.entrySet().iterator(), rescorer), howMany);
  }

  /**
   * @param userID user ID whose preference is to be estimated
   * @param itemID item ID to estimate preference for
View Full Code Here

Examples of net.openhft.collections.SharedHashMap.entrySet()

     * entrySet.toArray contains all entries
     */
    @Test
    public void testEntrySetToArray() throws IOException {
        SharedHashMap map = map5();
        Set s = map.entrySet();
        Object[] ar = s.toArray();
        assertEquals(5, ar.length);
        for (int i = 0; i < 5; ++i) {
            assertTrue(map.containsKey(((Map.Entry) (ar[i])).getKey()));
            assertTrue(map.containsValue(((Map.Entry) (ar[i])).getValue()));
View Full Code Here

Examples of net.sf.joafip.store.entity.bytecode.MethodMap.entrySet()

    final ClassVisitorForStorable classVisitorForStorable = new ClassVisitorForStorable();
    classVisitorForStorable.setMethodMap(methodMap, syntheticFieldSet);
    // must not skip code to compute max locals
    classReader.accept(classVisitorForStorable, /* ClassReader.SKIP_CODE | */
        ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
    final Set<Entry<MethodMapKey, Integer>> entrySet = methodMap.entrySet();
    for (Entry<MethodMapKey, Integer> entry : entrySet) {
      final MethodMapKey key = entry.getKey();
      System.out.println("maxs local " + key.getMethodName() + " "// NOPMD
          + key.getMethodDesc() + " " + entry.getValue());
    }
View Full Code Here

Examples of net.sf.json.JSONObject.entrySet()

        mockXML.message(0).body().isInstanceOf(String.class);

        Object json = template.requestBody("direct:marshal", in);
        String jsonString = context.getTypeConverter().convertTo(String.class, json);
        JSONObject obj = (JSONObject) JSONSerializer.toJSON(jsonString);
        assertEquals("JSONObject doesn't contain 7 keys", 7, obj.entrySet().size());

        template.sendBody("direct:unmarshal", jsonString);

        mockJSON.assertIsSatisfied();
        mockXML.assertIsSatisfied();
View Full Code Here

Examples of net.sourceforge.processdash.util.FileProperties.entrySet()

      } catch (Exception e) {
          return;
      }

      Set<String> keysToDelete = new HashSet(fsettings.keySet());
      for (Map.Entry e : newProps.entrySet()) {
          // look at each key in the settings file
          String key = (String) e.getKey();
          keysToDelete.remove(key);

          // do not override values that have been set from a system propery.
View Full Code Here

Examples of net.sourceforge.stripes.validation.ValidationErrors.entrySet()

            String formAction = StripesFilter.getConfiguration().getActionResolver()
                    .getUrlBinding(ctx.getActionBean().getClass());
            HttpServletRequest request = ctx.getActionBeanContext().getRequest();

            /** Since we don't pass form action down the stack, we add it to the errors here. */
            for (Map.Entry<String, List<ValidationError>> entry : errors.entrySet()) {
                String parameterName = entry.getKey();
                List<ValidationError> listOfErrors = entry.getValue();

                for (ValidationError error : listOfErrors) {
                    // Make sure we process each error only once, no matter how often we're called
View Full Code Here

Examples of net.yacy.cora.protocol.RequestHeader.entrySet()

        reqHeader.put(HeaderFramework.PRAGMA, "no-cache");
        reqHeader.put(HeaderFramework.CACHE_CONTROL, "no-cache"); // httpc uses HTTP/1.0 is this necessary?
        reqHeader.put(HeaderFramework.USER_AGENT, ClientIdentification.getUserAgent());
       
        final HTTPClient client = new HTTPClient();
        client.setHeader(reqHeader.entrySet());
        byte[] content = null;
        try {
            // send request
          content = client.GETbytes(seedURL);
        } catch (final Exception e) {
View Full Code Here

Examples of org.apache.axis2.jaxws.handler.SOAPHeadersAdapter.entrySet()

     
      adapter.putAll(hm1);
      adapter.putAll(hm2);

      // testing "entrySet()" method
      Set<Map.Entry<QName, List<String>>> entryset = adapter.entrySet();
     
        int checkCounter = 0;
      for (Iterator it = entryset.iterator();it.hasNext();) {
          Map.Entry<QName, List<String>> entry = (Map.Entry<QName, List<String>>)it.next();
          // we cannot assume that the order the maps went into
View Full Code Here

Examples of org.apache.cayenne.DataRow.entrySet()

       
        out.writeInt(row.size());
        out.writeLong(row.getVersion());
        out.writeLong(row.getReplacesVersion());

        for (final Map.Entry<String, Object> entry : row.entrySet()) {
            out.writeObject(entry.getKey());
            out.writeObject(entry.getValue());
        }

        out.writeMapEnd();
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.