Examples of containsKey()


Examples of java.util.ResourceBundle.containsKey()

            } else {
                bundle = getBundle(loggerName, locale, true);
            }
        }
        final String messagePattern = getFormat();
        final String msgPattern = (bundle == null || !bundle.containsKey(messagePattern)) ?
            messagePattern : bundle.getString(messagePattern);
        final Object[] array = argArray == null ? stringArgs : argArray;
        final FormattedMessage msg = new FormattedMessage(msgPattern, array);
        formattedMessage = msg.getFormattedMessage();
        throwable = msg.getThrowable();
View Full Code Here

Examples of java.util.SortedMap.containsKey()

            headerList.add(
                (colName.equals("-")
                        || (skipCols != null
                                && skipCols.remove(colName))
                        || (constColMap != null
                                && constColMap.containsKey(colName))
                )
                ? ((String) null)
                : colName);

            colStart = colEnd + dsvColDelim.length();
View Full Code Here

Examples of java.util.TreeMap.containsKey()

            List fcsl = new ArrayList(fcs.getColumnCount());
            while (fcs.parseRow(fcsl)) {
                String featureclass = ((String) fcsl.get(featureClassColumn)).toLowerCase();
                String table1 = ((String) fcsl.get(table1Column)).toLowerCase();
                if (!ftypeinfo.containsKey(featureclass)) {
                    ftypeinfo.put(featureclass, null);
                    String type = null;
                    if (table1.endsWith(".cft")) {
                        type = "complex feature";
                    } else if (table1.endsWith(".pft")) {
View Full Code Here

Examples of java.util.WeakHashMap.containsKey()

        };
        lib.callVoidCallback(cb);
        assertTrue("Callback not called", called[0]);
       
        Map refs = new WeakHashMap(callbackCache());
        assertTrue("Callback not cached", refs.containsKey(cb));
        CallbackReference ref = (CallbackReference)refs.get(cb);
        refs = callbackCache();
        Pointer cbstruct = ref.cbstruct;
       
        cb = null;
View Full Code Here

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

          System.err.println
            ("expected " + (ThreadCount * Range) + " got " + map.size());
        }
        expect(map.size() == ThreadCount * Range);
        for (int i = CommonBase, j = CommonBase + Range; i < j; ++i) {
          expect(! map.containsKey(i));
        }
     
        step[0] = 2;
        map.notifyAll();

View Full Code Here

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

     * containsKey(null) of nonempty map throws NPE
     */
    public void testContainsKey_NullPointerException() {
        try {
            ConcurrentNavigableMap c = map5();
            c.containsKey(null);
            shouldThrow();
        } catch (NullPointerException success) {}
    }

    /**
 
View Full Code Here

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

         }
         else if( mfFile != null )
         {
            Manifest mf = VFSUtils.readManifest(mfFile);
            Attributes attrs = mf.getMainAttributes();
            if( attrs.containsKey(Attributes.Name.MAIN_CLASS) )
            {
               type = J2eeModuleMetaData.CLIENT;
            }
            else
            {
View Full Code Here

Examples of javax.faces.context.Flash.containsKey()

            }
            else if (throwable instanceof ContextNotActiveException)
            {
                //the error page uses a cdi scope which isn't active as well
                //(it's recorded below - see flash.put(throwable.getClass().getName(), throwable);)
                if (flash.containsKey(ContextNotActiveException.class.getName()))
                {
                    //TODO show it in case of project-stage development
                    break;
                }
View Full Code Here

Examples of javax.json.JsonObject.containsKey()

        Response response = getResource(resourceURL, APPLICATION_JSON_TYPE);

        JsonObject content = response.readEntity(JsonObject.class);
        System.out.println(content);

        assertTrue(content.containsKey("result"));
        assertEquals("Hello World!", content.getString("result"));
    }

    /**
     * The purpose of this method is to run the external REST request.
View Full Code Here

Examples of javax.management.openmbean.CompositeData.containsKey()

        Collection<Object> records = tabularData.values();
        List<String> list = new ArrayList<String>();
        for (Object o : records)
        {
            CompositeData data = (CompositeData) o;
            if (data.containsKey(USERNAME))
            {
                list.add(data.get(USERNAME).toString());
            }
        }
       
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.