Examples of containsKey()


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

        final LongLongMap valueToId = new LongLongOpenHashMap();
        final long[] idToValue = new long[values.length];
        final int iters = randomInt(1000000);
        for (int i = 0; i < iters; ++i) {
            final Long value = randomFrom(values);
            if (valueToId.containsKey(value)) {
                assertEquals(-1 - valueToId.get(value), hash.add(value));
            } else {
                assertEquals(valueToId.size(), hash.add(value));
                idToValue[valueToId.size()] = value;
                valueToId.put(value, valueToId.size());
View Full Code Here

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

        final LongLongMap valueToId = new LongLongOpenHashMap();
        final long[] idToValue = new long[values.length];
        final int iters = randomInt(1000000);
        for (int i = 0; i < iters; ++i) {
            final Long value = randomFrom(values);
            if (valueToId.containsKey(value)) {
                assertEquals(-1 - valueToId.get(value), hash.add(value));
            } else {
                assertEquals(valueToId.size(), hash.add(value));
                idToValue[valueToId.size()] = value;
                valueToId.put(value, valueToId.size());
View Full Code Here

Examples of com.caucho.quercus.env.ArrayValue.containsKey()

        = QuercusMimeUtility.decodeMime(env, header.getName(), charset);
        StringValue val
        = QuercusMimeUtility.decodeMime(env, header.getValue(), charset);

        Value headerName;
        if ((headerName = headers.containsKey(name)) == null) {
          headers.put(name, val);
          continue;
        }

        ArrayValue inner;
View Full Code Here

Examples of com.caucho.quercus.env.ArrayValueImpl.containsKey()

        = QuercusMimeUtility.decodeMime(env, header.getName(), charset);
        StringValue val
        = QuercusMimeUtility.decodeMime(env, header.getValue(), charset);

        Value headerName;
        if ((headerName = headers.containsKey(name)) == null) {
          headers.put(name, val);
          continue;
        }

        ArrayValue inner;
View Full Code Here

Examples of com.cedarsoftware.util.io.JsonObject.containsKey()

                        }
                        url = baseUrl + uri;
                    }

                    boolean cache = true;
                    if (cMap.containsKey("cache"))
                    {
                        if (cMap.get("cache") instanceof Boolean)
                        {
                            cache = (Boolean) cMap.get("cache");
                        }
View Full Code Here

Examples of com.centraview.common.MasterDictionary.containsKey()

        String otherTable= (String) hm.get("othertablename");

        // Check whether allready Present or Not
        // if Present then get and add  to it.
        // else put New Object.
        if (mdObj.containsKey(table2))
        {
          HashMap innHMap = (HashMap)mdObj.get(table2);
          Vector vec = (Vector)innHMap.get(table1);
          if (vec == null)
          {
View Full Code Here

Examples of com.complexible.common.util.EnhancedProperties.containsKey()

    int aIndex = 0;

    Map<String, String> aGeneralConfig = new HashMap<String, String>();
    Map<String, Map<String, String>> aUnitConfig = new HashMap<String, Map<String, String>>();

    while (aProps.containsKey(aIndex+"."+KEY_NAME)) {
      String aPrefix = aIndex+".";
      Map<String, String> aUnit = new HashMap<String, String>();
     
      for (Object aOrigKey : Collections2.filter(aProps.keySet(), new PrefixPredicate(aPrefix))) {
        String aKey = aOrigKey.toString();
View Full Code Here

Examples of com.dilanperera.rapidws.config.ServiceDataMap.containsKey()

        String operationName = messageContext.getOperationName();

      serviceDataMap.save();

        // check whether the service has been mapped in configuration
        if (serviceDataMap.containsKey(serviceName))
        {
            // get service data from configuration mapping
            ServiceData serviceData = serviceDataMap.get(serviceName);

            // check whether the operation has been mapped in configuration
View Full Code Here

Examples of com.dooapp.gaedo.finders.repository.ServiceRepository.containsKey()

  @Override
    public <DataType> void deleteVertex(AbstractBluePrintsBackedFinderService<? extends Graph, DataType, ?> service, GraphDatabaseDriver driver, Vertex objectVertex, Vertex valueVertex, Serializable value, ObjectCache objectsBeingUpdated) {
    ServiceRepository repository = driver.getRepository();
    // some first-level check to see if someone else than this transformer has any knowledge of value (because, well, this id will be longer than hell)
    Class<? extends Serializable> valueClass = value.getClass();
    if(repository.containsKey(valueClass)) {
      FinderCrudService dedicated = repository.get(valueClass);
      if (dedicated instanceof AbstractBluePrintsBackedFinderService) {
        AbstractBluePrintsBackedFinderService blueprints= (AbstractBluePrintsBackedFinderService) dedicated;
        blueprints.deleteOutEdgeVertex(objectVertex, valueVertex, value, objectsBeingUpdated);
        return;
View Full Code Here

Examples of com.dtrules.interpreter.RTable.containsKey()

             boolean duplicates = state.datapop().booleanValue();
             RArray  keys       = state.datapop().rArrayValue();
             RTable  table      = state.datapop().rTableValue();
             RArray valueArray = new RArray(state.getSession().getUniqueID(),duplicates,false);
             for(IRObject key : keys){
                 if(table.containsKey(key)){
                    valueArray.add(table.getValue(key));
                 }
             }
             state.datapush(valueArray);
         }
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.