Package java.util

Examples of java.util.HashMap.clear()


   */
  public void clear() {

    synchronized (this) {
      HashMap temp = (HashMap) map.clone();
      temp.clear();
      map = temp;
    }

  }

View Full Code Here


        assertEquals( false,
                      filtered[0].booleanValue() );

        // clear the agenda and the result map
        agenda.clearAndCancel();
        results.clear();

        // False filter, activations should always be denied
        final AgendaFilter filterFalse = new AgendaFilter() {
            public boolean accept(Activation item) {
                return false;
View Full Code Here

        ruleAdministrator.registerRuleExecutionSet( "IntegrationExampleTest.xls",
                                                    ruleExecutionSet,
                                                    properties );

        properties.clear();
        final List list = new ArrayList();
        properties.put( "list",
                        list );
       
        RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
View Full Code Here

      field.setAccessible(true);
      Timer timer1 = (Timer) field.get(null);
     
      // Add second callback handler and verify Timer is unchanged.
      TestCallbackHandler callbackHandler2 = new TestCallbackHandler();
      metadata.clear();
      metadata.put(Bisocket.IS_CALLBACK_SERVER, "true");
      client.addListener(callbackHandler2, metadata);
      Timer timer2 = (Timer) field.get(null);
      assertEquals(timer1, timer2);
     
View Full Code Here

          if (subMonitor != null && reportEvery != 0
              && (i + 1) % reportEvery == 0)
            subMonitor.worked(1);
        }
        helperMap.clear();
      }
    }

    /**
     * Returns an array of items filtered using the provided
View Full Code Here

            assertEquals("intIndexed[3] is 30",
                         30, bean.getIntIndexed(3));
            assertEquals("intIndexed[4] is 140",
                         140, bean.getIntIndexed(4));

            map.clear();
            map.put("stringIndexed[1]", "New String 1");
            map.put("stringIndexed[3]", "New String 3");

            BeanUtils.populate(bean, map);
View Full Code Here

                         30, intIndexed3.intValue());
            Integer intIndexed4 = (Integer) bean.get("intIndexed", 4);
            assertEquals("intIndexed[4] is 140",
                         140, intIndexed4.intValue());

            map.clear();
            map.put("stringIndexed[1]", "New String 1");
            map.put("stringIndexed[3]", "New String 3");

            BeanUtils.populate(bean, map);
View Full Code Here

                } else {
                    hoverClass = "odd";
                }

                // Empty the row attributes
                rowAttributes.clear();

                // Allow user to add row attributes
                addRowAttributes(rowAttributes, row, i);

                if (!rowAttributes.isEmpty()) {
View Full Code Here

                if (cin.shouldNotify()) {
                    cm.sendConsumerInfo(InfoRequestHandler.REQUEST_CONSUMER_INFO,
                        cin.duid, cin.destType, cin.infoType, cin.sendToWildcard);
                }
            }
            notifications.clear();
        }
    }

    public void remoteConsumerAdded(Destination dest) {
        if (!requested) return;
View Full Code Here

                "org.apache.geronimo.tomcat.realm.TomcatJAASRealm");
        realm.setAttribute("initParams", initParams);
        start(realm);

        // Default Host
        initParams.clear();
        initParams.put("workDir", "work");
        initParams.put("name", "localhost");
        initParams.put("appBase", "");
        host = new GBeanData(hostName, HostGBean.GBEAN_INFO);
        host.setAttribute("className", "org.apache.catalina.core.StandardHost");
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.