Examples of containsKey()


Examples of EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.containsKey()

                        }
                    }
                } else {
                    //Create map for each consumer
                    for (int j = 0 ; j < consumerCount ; j++) {
                        if (!consumerMap.containsKey(new String(ConsumerName))) {
                            consumerMap.put(new String(ConsumerName), new LinkedHashMap());
                        }
                    }

                    //create Producer Name Map
View Full Code Here

Examples of aQute.bnd.header.Attrs.containsKey()

                    Parameters imports = domain.getImportPackage();
                    Parameters exports = domain.getExportPackage();
                    for (String p : exports.keySet()) {
                        if (imports.containsKey(p)) {
                            Attrs attrs = imports.get(p);
                            if (attrs.containsKey(VERSION_ATTRIBUTE)) {
                                exports.get(p).put("imported-as", attrs.get(VERSION_ATTRIBUTE));
                            }
                        }
                    }
                    print("Import-Package", new TreeMap<String,Attrs>(imports));
View Full Code Here

Examples of aohara.utilities.PropertyManager.containsKey()

        this.trustGrapher = trustGrapher;
        initComponents();

        PropertyManager config = trustGrapher.getPropertyManager();

        if (config.containsKey(DELAY)) { //Load current delay from properties
            if (config.getProperty(DELAY).equals("" + EventPlayer.DEFAULT_DELAY)) { //If the current delay is the default delay
                defaultDelayButton.doClick();
                delayField.setText("");
            } else { //Otherwise, the delay is custom
                customDelayButton.doClick();
View Full Code Here

Examples of ariba.util.core.GrowOnlyHashtable.containsKey()

            // compatibility, but we've added the extra "preferred timezone" concept.

            // Note that this caches the value at the system level and we'll need to
            // add a per-realm override and possibly a per-user override in the future.

            if (timezoneByOffsetKeys.containsKey(newKey)) {
                String currId = timezoneByOffsetKeys.get(newKey).getID();
                if (preferredTimezones == null || !preferredTimezones.contains(currId)) {
                    Log.aribaweb.debug("Overwriting existing timezone key: %s value: %s with new value: %s",
                            newKey, currId, timezones[i]);
                    timezoneByOffsetKeys.put(newKey, timezone);
View Full Code Here

Examples of bm.core.Properties.containsKey()

                return attachment;
            }

            final Properties definitions = DefaultFieldResolver.definitions;
            Row target = null;
            if( definitions.containsKey( fieldName + ".table" ) )
            {
                target = getTarget( fieldName, source );
            }
            try
            {
View Full Code Here

Examples of cern.colt.map.AbstractIntDoubleMap.containsKey()

for (int i=0; i<keys.length; i++) {
   map.put(keys[i], (int)values[i]);
}

System.out.println(map.containsKey(3));
System.out.println(map.get(3));

System.out.println(map.containsKey(4));
System.out.println(map.get(4));
View Full Code Here

Examples of cern.colt.map.OpenIntDoubleHashMap.containsKey()

for (int i=0; i<keys.length; i++) {
   map.put(keys[i], (int)values[i]);
}

System.out.println(map.containsKey(3));
System.out.println(map.get(3));

System.out.println(map.containsKey(4));
System.out.println(map.get(4));
View Full Code Here

Examples of cern.colt.map.OpenIntObjectHashMap.containsKey()

               
                for (int i = 0; i < tier.size(); i++)
                {
                    int key = tier.keys().get(i);
                   
                    assertTrue(tier2.containsKey(key));
                   
                    IVertex vertex = (IVertex) tier.get(key);
                    IVertex vertex2 = (IVertex) tier2.get(key);
                   
                    assertVerticesEqual(vertex, vertex2);
View Full Code Here

Examples of com.adito.boot.CaseInsensitiveMap.containsKey()

                }
            }
        }
        StringBuffer buf = new StringBuffer("<form");
        String sslexUrl = context.toExternalForm();
        if (a.containsKey("action")) {
            try {
                String contextPath = context.toExternalForm();
                if (contextPath.endsWith("/")) {
                    contextPath = contextPath.substring(0, contextPath.length() - 1);
                }               
View Full Code Here

Examples of com.alibaba.citrus.service.template.TemplateContext.containsKey()

        assertThat(content, containsString("6. %3Cworld+name%3D%22'%D6%D0%B9%FA'%22+%2F%3E"));

        // sql
        assertThat(content, containsString("7. <world name=\"''中国''\" />"));

        assertFalse(ctx.containsKey("_ESCAPE_SUPPORT_TYPE_"));
    }

    @Test
    public void escape_directive_macros() throws Exception {
        getEngine("with_escape", factory);
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.