Examples of containsKey()


Examples of com.alibaba.citrus.service.template.support.MappedTemplateContext.containsKey()

        assertThat(content, containsString("8. <world name="中国" />"));

        // original (restored)
        assertThat(content, containsString("9. <world name=\"中国\" />"));

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

    @Test
    public void escape_directive_default() throws Exception {
        getEngine("with_defaultEscape", factory);
View Full Code Here

Examples of com.alibaba.fastjson.JSONObject.containsKey()

        Assert.assertEquals(true, json.isEmpty());
        json.put("C", 51L);
        json.put("B", 52);
        json.put("A", 53);
        Assert.assertEquals(false, json.isEmpty());
        Assert.assertEquals(true, json.containsKey("C"));
        Assert.assertEquals(false, json.containsKey("D"));
        Assert.assertEquals(true, json.containsValue(52));
        Assert.assertEquals(false, json.containsValue(33));
        Assert.assertEquals(null, json.remove("D"));
        Assert.assertEquals(51L, json.remove("C"));
View Full Code Here

Examples of com.alibaba.toolkit.util.collection.ArrayHashMap.containsKey()

        for (Iterator i = resourceNode.selectNodes(ResourceBundleConstant.XPATH_RESOURCES)
                                      .iterator(); i.hasNext();) {
            Node   mapItemNode = (Node) i.next();
            Object mapKey = mapItemNode.selectObject(ResourceBundleConstant.XPATH_RESOURCE_ID);

            if (map.containsKey(id)) {
                throw new ResourceBundleCreateException(ResourceBundleConstant.RB_DUPLICATED_MAP_RESOURCE_KEY,
                                                        new Object[] {
                    mapKey,
                    id
                }, null);
View Full Code Here

Examples of com.alibaba.toolkit.util.collection.ListMap.containsKey()

        for (Iterator i = resourceNode.selectNodes(ResourceBundleConstant.XPATH_RESOURCES)
                                      .iterator(); i.hasNext();) {
            Node   mapItemNode = (Node) i.next();
            Object mapKey = mapItemNode.selectObject(ResourceBundleConstant.XPATH_RESOURCE_ID);

            if (map.containsKey(id)) {
                throw new ResourceBundleCreateException(ResourceBundleConstant.RB_DUPLICATED_MAP_RESOURCE_KEY,
                                                        new Object[] {
                    mapKey,
                    id
                }, null);
View Full Code Here

Examples of com.almende.eve.state.State.containsKey()

   */
  private ArrayNode getConns(final String agentId) throws IOException {
    final State state = agentHost.getStateFactory().get(agentId);
   
    ArrayNode conns = null;
    if (state.containsKey(CONNKEY)) {
      conns = (ArrayNode) JOM.getInstance().readTree(
          state.get(CONNKEY, String.class));
    }
    return conns;
  }
View Full Code Here

Examples of com.almende.util.ObjectCache.containsKey()

            + senderUrl + " : " + token);
      }
      return;
    } else {
      final ObjectCache sessionCache = ObjectCache.get("ZMQSessions");
      if (!sessionCache.containsKey(key) && doesAuthentication) {
        final SyncCallback<String> callback = new SyncCallback<String>(){};
        CALLBACKS.push(key, "", callback);
        sendAsync(ZMQ.HANDSHAKE, token.toString(), senderUrl, token
            .getTime().getBytes(), null);
       
View Full Code Here

Examples of com.badlogic.gdx.utils.ObjectMap.containsKey()

          if (regions.length == 1) return new NinePatch(regions[0]);
          return new NinePatch(regions);
        } else {
          ObjectMap map = (ObjectMap)jsonData;
          NinePatch ninePatch;
          if (map.containsKey("regions"))
            ninePatch = new NinePatch(json.readValue("regions", TextureRegion[].class, jsonData));
          else if (map.containsKey("region"))
            ninePatch = new NinePatch(json.readValue("region", TextureRegion.class, jsonData));
          else
            ninePatch = new NinePatch(json.readValue(TextureRegion.class, jsonData));
View Full Code Here

Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata.containsKey()

        RiakUserMetadata meta = new RiakUserMetadata();
        AnnotationUtil.getUsermetaData(meta, obj);
               
        for (String key : userMetaData.keySet())
        {
            assertTrue(meta.containsKey(key));
            assertEquals(meta.get(key), userMetaData.get(key));
        }
       
        assertTrue(meta.containsKey(META_KEY_ONE));
        assertEquals(userMetaItemOne, meta.get(META_KEY_ONE));
View Full Code Here

Examples of com.bergerkiller.bukkit.common.nbt.CommonTagCompound.containsKey()

      // First, clear previous player information when loading involves adding new elements
      clearEffects(player);

      // Refresh attributes
      if (data.containsKey("Attributes")) {
        NBTUtil.loadAttributes(player, data.get("Attributes", CommonTagList.class));
      }

      // Load the data
      NBTUtil.loadInventory(player.getInventory(), data.createList("Inventory"));
View Full Code Here

Examples of com.carrotsearch.hppc.IntIntOpenHashMap.containsKey()

    public int containKeys(int [] keys)
    {
        final IntIntOpenHashMap prepared = this.instance;
        int count = 0;
        for (int i = 0; i < keys.length; i++)
            count += prepared.containsKey(keys[i]) ? 1 : 0;
        return count;
    }
   
    @Override
    public int putAll(int [] keys, int [] values)
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.