Examples of containsKey()


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

   
    private boolean validateOutOfBandHander() {
        MessageContext ctx = context == null ? null : context.getMessageContext();
        if (!relayHeaders) {
            if (ctx != null
                && !ctx.containsKey(Header.HEADER_LIST)
                || (ctx.containsKey(Header.HEADER_LIST)
                    && ((List)ctx.get(Header.HEADER_LIST)).size() == 0)) {
                return true;
            }
            return false;
View Full Code Here

Examples of javolution.util.FastMap.containsKey()

        @Override
        public void setField(Object obj, Class forClass, Class type) {
            synchronized (forClass) { // We don't want to attach simultaneously to the same class.
                FastMap typeToField = (FastMap) _fields.get(forClass);
                if ((typeToField != null) && typeToField.containsKey(type))
                    throw new IllegalArgumentException("Field of type " + type + " already attached to class " + forClass);
                if (typeToField == null) {
                    typeToField = new FastMap();
                    _fields.put(forClass, typeToField);
                }
View Full Code Here

Examples of jdbm.SecondaryHashMap.containsKey()

      SecondaryHashMap h = st.secondaryHashMap("map2",extractor);
      Long key = st.putValue("aaa");
      assertTrue(t.size() == 1);
      assertTrue(t.containsKey(""+key+"aaa"));
      assertTrue(h.size() == 1);
      assertTrue(h.containsKey(""+key+"aaa"));
     
      //defrag will force reopening
      recman.defrag();
      recman.clearCache();
     
View Full Code Here

Examples of jdbm.SecondaryTreeMap.containsKey()

      }};
      SecondaryTreeMap t = st.secondaryTreeMap("map1",extractor);
      SecondaryHashMap h = st.secondaryHashMap("map2",extractor);
      Long key = st.putValue("aaa");
      assertTrue(t.size() == 1);
      assertTrue(t.containsKey(""+key+"aaa"));
      assertTrue(h.size() == 1);
      assertTrue(h.containsKey(""+key+"aaa"));
     
      //defrag will force reopening
      recman.defrag();
View Full Code Here

Examples of lineage2.gameserver.templates.StatsSet.containsKey()

      ItemTemplate template = null;
      try
      {
        if (itemElement.getName().equalsIgnoreCase("weapon"))
        {
          if (!set.containsKey("class"))
          {
            if ((slot & ItemTemplate.SLOT_L_HAND) > 0)
            {
              set.set("class", ItemTemplate.ItemClass.ARMOR);
            }
View Full Code Here

Examples of lombok.val.containsKey()

    for (TInner inner : innerValues)
    {
      TKey innerKey = innerKeySelector.apply(inner);

      if (lookup.containsKey(innerKey))
      {
        TOuter outer = lookup.get(innerKey);
        TResult res = resultSelector.apply(outer, inner);
        result.add(res);
      }
View Full Code Here

Examples of mage.view.CardsView.containsKey()

                }

                PlayerView view = panel.getPlayerPanel().getPlayer();
                if (view != null) {
                    CardsView graveyard = view.getGraveyard();
                    if (graveyard.containsKey(uuid)) {
                        p = MageFrame.getGame(data.gameId).getPlayers().get(view.getPlayerId());
                        if (p != null) {
                            Point target = p.getLocationOnScreen();
                            target.translate(-parentPoint.x, -parentPoint.y);
                            int yOffset = p.isSmallMode() ? (PlayAreaPanel.PANEL_HEIGHT - PlayAreaPanel.PANEL_HEIGHT_SMALL) : 0;
View Full Code Here

Examples of net.asfun.jangod.util.ListOrderedMap.containsKey()

    }
    Object isChild = interpreter.fetchRuntimeScope(JangodInterpreter.CHILD_FLAG, 1);
    if ( isChild != null ) {
      ListOrderedMap blockList = (ListOrderedMap) interpreter.fetchRuntimeScope(JangodInterpreter.BLOCK_LIST, 1);
      //check block was defined in parent
      if ( ! blockList.containsKey(blockName) ) {
        throw new InterpretException("Dosen't define block in extends parent with name >>> " + blockName);
      }
      //cover parent block content with child's.
      blockList.put(blockName, getBlockContent(carries, interpreter));
      return "";
View Full Code Here

Examples of net.bnubot.util.SortedProperties.containsKey()

      Properties versionprops = new SortedProperties();
      versionprops.load(is);
      is.close();

      Integer VER_SVN_REVISION_FILE = null;
      if(versionprops.containsKey(sReleaseType))
        RELEASE_TYPE = ReleaseType.valueOf((String)versionprops.get(sReleaseType));
      if(versionprops.containsKey(sVerMajor))
        VER_MAJOR = Integer.parseInt((String)versionprops.get(sVerMajor));
      if(versionprops.containsKey(sVerMinor))
        VER_MINOR = Integer.parseInt((String)versionprops.get(sVerMinor));
View Full Code Here

Examples of net.grinder.common.GrinderProperties.containsKey()

            final File consoleScript = messageProperties.resolveRelativeFile(messageProperties.getFile(
                GrinderProperties.SCRIPT, GrinderProperties.DEFAULT_SCRIPT));

            // We only fall back to the agent properties if the start message
            // doesn't specify a script and there is no default script.
            if (messageProperties.containsKey(GrinderProperties.SCRIPT) || consoleScript.canRead()) {
              // The script directory may not be the file's direct parent.
              script = new ScriptLocation(fileStoreDirectory, consoleScript);
            }
            m_agentIdentity.setNumber(startMessage.getAgentNumber());
          } else {
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.