Examples of containsKey()


Examples of org.geoserver.ows.util.CaseInsensitiveMap.containsKey()

                //overview mode, turn off regionation
                fo.remove( "regionateBy" );
            }
            else {
                //specify regionateBy=auto if not specified
                if ( !fo.containsKey( "regionateBy") ) {
                    fo.put( "regionateBy", "auto");   
                }
               
            }
           
View Full Code Here

Examples of org.geotools.factory.Hints.containsKey()

                    Utils.ELEVATION_DOMAIN, indexer));
            configBuilder.setAdditionalDomainAttributes(IndexerUtils.getAttribute(coverageName,
                    Utils.ADDITIONAL_DOMAIN, indexer));

            final Hints runHints = getRunConfiguration().getHints();
            if (runHints != null && runHints.containsKey(Utils.AUXILIARY_FILES_PATH)) {
                String auxiliaryFilePath = (String) runHints.get(Utils.AUXILIARY_FILES_PATH);
                if (auxiliaryFilePath != null && auxiliaryFilePath.trim().length() > 0) {
                    configBuilder.setAuxiliaryFilePath(auxiliaryFilePath);
                }
            }
View Full Code Here

Examples of org.groovymud.utils.CountingMap.containsKey()

    CountingMap netDead = getNetDeadPlayers();
    while (x.hasNext()) {
      LoginShell shell = x.next();
      if (!shell.getConnection().isActive()) {
        Player p = getObjectRegistry().getPlayerByHandle(shell);
        if (!netDead.containsKey(p)) {
          // not a good way to do it.. but how.. ?
          logger.info(p.getName() + " is net dead..");
          p.addStatus(NET_DEAD_STATUS);
        }
        netDead.increment(p);
View Full Code Here

Examples of org.grouplens.lenskit.vectors.MutableSparseVector.containsKey()

            // Compute similarities and populate the vector
            while (neighbors.hasNext()) {
                final long colItem = neighbors.nextLong();
                final SparseVector vec2 = buildContext.itemVector(colItem);
                assert currentRow.containsKey(colItem);
                currentRow.set(colItem, similarity.similarity(rowItem, vec1, colItem, vec2));
            }

            // Remove the current item (it is not its own neighbor)
            currentRow.unset(rowItem);
View Full Code Here

Examples of org.grouplens.lenskit.vectors.SparseVector.containsKey()

        assertThat(scorer, notNullValue());
        SparseVector scores = scorer.score(5, LongArrayList.wrap(items));
        assertThat(scores, notNullValue());
        assertThat(scores.size(), equalTo(1));
        assertThat(scores.get(7), not(notANumber()));
        assertThat(scores.containsKey(8), equalTo(false));
    }

    /**
     * Check that we score items but do not provide scores for items
     * the user has previously rated.  User 5 has rated only item 8
View Full Code Here

Examples of org.gudy.azureus2.core3.util.ByteArrayHashMap.containsKey()

      for (int i=0;i<results.length;i++){
       
        SubscriptionResultImpl result = results[i];
       
        if ( !result.isDeleted() && rids.containsKey( result.getKey1())){
         
          changed = true;
         
          result.deleteInternal();
        }
View Full Code Here

Examples of org.h2.constant.DbSettings.containsKey()

                prop.put(key, value);
            } else {
                if (s == null) {
                    s = getDbSettings();
                }
                if (s.containsKey(key)) {
                    prop.put(key, value);
                }
            }
        }
    }
View Full Code Here

Examples of org.h2.util.SortedProperties.containsKey()

        HashSet<String> toTranslate = new HashSet<String>();
        // add missing keys, using # and the value from the main file
        for (Object k : main.keySet()) {
            String key = (String) k;
            String now = main.getProperty(key);
            if (!p.containsKey(key)) {
                String t = oldTranslations.getProperty(now);
                if (t == null) {
                    // System.out.println(trans.getName() +
                    // ": key " + key + " not found in " +
                    // "translation file; added # 'translation'");
View Full Code Here

Examples of org.hibernate.search.util.configuration.impl.MaskedProperty.containsKey()

    return delegatedBackend.getExclusiveWriteLock();
  }

  private static void assertLegacyOptionsNotUsed(Properties props, String indexName) {
    MaskedProperty jgroupsCfg = new MaskedProperty( props, "worker.backend.jgroups" );
    if ( jgroupsCfg.containsKey( "configurationFile" )
        || jgroupsCfg.containsKey( "configurationXml" )
        || jgroupsCfg.containsKey( "configurationString" )
        || jgroupsCfg.containsKey( "clusterName" ) ) {
      throw log.legacyJGroupsConfigurationDefined( indexName );
    }
View Full Code Here

Examples of org.hsqldb.lib.IntValueHashMap.containsKey()

            Expression expression = exprColumns[i];

            if (expression.getType() == OpTypes.COLUMN) {
                String name = expression.getColumn().getName().name;

                if (columns.containsKey(name)) {
                    columns.put(name, 1);

                    continue;
                }
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.