Examples of entrySet()


Examples of java.util.concurrent.ConcurrentHashMap.entrySet()

     * find and remove stale ReplicationResponseRepositoryEntries
     */
    protected void doCleanup() {
        ArrayList idsToRemove = new ArrayList(100);
        ConcurrentHashMap myMap = this.getRepository();
        Set entries = myMap.entrySet();
        //if (_logger.isLoggable(Level.FINEST)) {
        //    _logger.finest("doCleanup:entries count = " + entries.size());
        //}
        Iterator it = entries.iterator();
        while(it.hasNext()) {
View Full Code Here

Examples of java.util.concurrent.ConcurrentNavigableMap.entrySet()

    /**
     * entrySet contains all pairs
     */
    public void testDescendingEntrySet() {
        ConcurrentNavigableMap map = dmap5();
        Set s = map.entrySet();
        assertEquals(5, s.size());
        Iterator it = s.iterator();
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry) it.next();
            assertTrue(
View Full Code Here

Examples of java.util.jar.Attributes.entrySet()

      log.info("META--> " + meta.getJMSVersion());
      log.info("META--> " + meta.getProviderMajorVersion());
      log.info("META--> " + meta.getProviderMinorVersion());
      log.info("META--> " + meta.getProviderVersion());
     
      Iterator itr = attrs.entrySet().iterator();
      while (itr.hasNext()) {
         Object item = itr.next();
         System.out.println("MANIFEST--> " + item + " : " + attrs.get(item));
      }
     
View Full Code Here

Examples of javax.json.JsonObject.entrySet()

    public JsonObject json() throws IOException {
        final JsonObject obj = new JsonNode(
            this.storage.xml().nodes(this.xpath()).get(0)
        ).json();
        final JsonObjectBuilder json = Json.createObjectBuilder();
        for (final Map.Entry<String, JsonValue> val : obj.entrySet()) {
            json.add(val.getKey(), val.getValue());
        }
        return json
            .add(
                "comments",
View Full Code Here

Examples of javax.management.openmbean.TabularDataSupport.entrySet()

        final CompositeData message = queueView.browse()[0];
        assertNotNull(message);
        TabularDataSupport stringProperties = (TabularDataSupport) message.get(CompositeDataConstants.STRING_PROPERTIES);
        assertNotNull(stringProperties);
        assertThat(stringProperties.size(), is(greaterThan(0)));
        Map.Entry<Object, Object> compositeDataEntry = (Map.Entry<Object, Object>) stringProperties.entrySet().toArray()[0];
        CompositeData stringEntry = (CompositeData) compositeDataEntry.getValue();
        assertThat(String.valueOf(stringEntry.get("key")), equalTo(KEY));
        assertThat(String.valueOf(stringEntry.get("value")), equalTo(VALUE));
    }
View Full Code Here

Examples of javax.script.Bindings.entrySet()

        try {
          Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
         
          // initialize the Velocity context
          final VelocityContext c = new VelocityContext();
          for (Object entryObj : bindings.entrySet()) {
              Map.Entry<?, ?> entry = (Map.Entry<?, ?>) entryObj;
              c.put((String) entry.getKey(), entry.getValue());
          }
 
          // let Velocity evaluate the script, and send the output to the browser
View Full Code Here

Examples of javax.script.SimpleBindings.entrySet()

                        se.eval(p.getValue1(), bindings, language);

                        // re-assign graph bindings back to global bindings.  prevent assignment of non-graph
                        // implementations just in case someone tries to overwrite them in the init
                        bindings.entrySet().stream()
                                .filter(kv -> kv.getValue() instanceof Graph)
                                .forEach(kv -> this.globalBindings.put(kv.getKey(), kv.getValue()));

                        logger.info("Initialized {} ScriptEngine with {}", language, p.getValue0());
                    } catch (ScriptException sx) {
View Full Code Here

Examples of javax.xml.ws.handler.MessageContext.entrySet()

        LOG.info("WebServiceContext: " + context);
        LOG.info("Principal: " + context.getUserPrincipal());
        LOG.info("Context: " + context.getMessageContext());

        MessageContext ctx = context.getMessageContext();
        Iterator iter = ctx.entrySet().iterator();
        while(iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            System.out.println("Key: "+entry.getKey());
            System.out.println("Value: " +entry.getValue());
        }
View Full Code Here

Examples of lombok.val.entrySet()

        lookup.get(item).next();

    long max = -1;
    T result = null;
    for (val kvp : lookup.entrySet())
    {
      if (kvp.getValue().getValue() > max)
      {
        max = kvp.getValue().getValue();
        result = kvp.getKey();
View Full Code Here

Examples of macromedia.asc.util.Names.entrySet()

                   }
            }
          }
          else
          {
              for( Map.Entry<String, Qualifiers> n : names.entrySet(Names.VAR_NAMES))
              {
                  // Add trait for multiname var
                  addSlotTrait(obj,traits,n.getKey(), n.getValue());
              }
 
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.