Examples of apply()


Examples of org.fusesource.ide.commons.util.Function1.apply()

    }
    String text = "";
    double percent = 0;
    if (labelProvider instanceof Function1) {
      Function1 fn = (Function1) labelProvider;
      Object value = fn.apply(element);
      if (value != null) {
        text = value.toString();
        double d = doubleValue(value);

        // lets find the maximum value
View Full Code Here

Examples of org.geomajas.gwt.client.map.cache.tile.VectorTile.apply()

      for (TileCode tileCode : tileCodes) {
        VectorTile tile = currentNodes.get(tileCode.toString());
        if (null == tile) {
          tile = addTile(tileCode); // Add the node
        }
        tile.apply(filter, onUpdate);
        tile.applyConnected(filter, onUpdate);
      }
    }
  }
View Full Code Here

Examples of org.geowebcache.filter.parameters.ParameterFilter.apply()

            String defaultValue = defaultValues.get(key);
            if (value == null || value.length() == 0
                    || (defaultValue != null && defaultValue.equals(value))) {
                fullParameters.put(key, defaultValue);
            } else {
                String appliedValue = parameterFilter.apply(value);
                fullParameters.put(key, appliedValue);
            }
        }
        if (defaultValues.equals(fullParameters)) {
            return Collections.emptyMap();
View Full Code Here

Examples of org.geowebcache.filter.request.RequestFilter.apply()

            return;

        Iterator<RequestFilter> iter = requestFilters.iterator();
        while (iter.hasNext()) {
            RequestFilter filter = iter.next();
            filter.apply(convTile);
        }
    }

    /**
     * @return default parameter filters, with keys normalized to upper case, or an empty map if no
View Full Code Here

Examples of org.gephi.layout.plugin.forceAtlas2.ForceFactory.AttractionForce.apply()

        // Attraction
        AttractionForce Attraction = ForceFactory.builder.buildAttraction(isLinLogMode(), isOutboundAttractionDistribution(), isAdjustSizes(), 1 * ((isOutboundAttractionDistribution()) ? (outboundAttCompensation) : (1)));
        if (getEdgeWeightInfluence() == 0) {
            for (Edge e : edges) {
                Attraction.apply(e.getSource(), e.getTarget(), 1);
            }
        } else if (getEdgeWeightInfluence() == 1) {
            for (Edge e : edges) {
                Attraction.apply(e.getSource(), e.getTarget(), e.getWeight());
            }
View Full Code Here

Examples of org.geppetto.core.model.runtime.AspectSubTreeNode.apply()

      else
      {
        for(RecordingModel recording : _recordings)
        {
          UpdateRecordingStateTreeVisitor updateStateTreeVisitor = new UpdateRecordingStateTreeVisitor(recording, watchTree.getInstancePath(), _currentRecordingIndex++);
          watchTree.apply(updateStateTreeVisitor);
          if(updateStateTreeVisitor.getError() != null)
          {
            throw new GeppettoExecutionException(updateStateTreeVisitor.getError());
          }
        }
View Full Code Here

Examples of org.geppetto.core.model.runtime.RuntimeTreeRoot.apply()

    group.getVisualGroupElements().add(synapse);
   
    visualization.addChild(group);
   
    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    runtime.apply(visitor);
    String serialized = visitor.getSerializedTree();
    System.out.println(serialized);

    Gson gson = new GsonBuilder().setPrettyPrinting().create();
    JsonParser jp = new JsonParser();
View Full Code Here

Examples of org.glassfish.jersey.server.ApplicationHandler.apply()

        }

        final ApplicationHandler app = new ApplicationHandler(resourceConfig);

        final URI baseUri = URI.create("/");
        assertEquals(response, app.apply(new ContainerRequest(baseUri, baseUri, "GET", null, new MapPropertiesDelegate())).get()
                .getEntity());
    }
}
View Full Code Here

Examples of org.glassfish.jersey.server.internal.process.Endpoint.apply()

                    if (endpoint == null) {
                        // not found
                        throw new NotFoundException();
                    }

                    final ContainerResponse response = endpoint.apply(data);

                    if (!asyncResponderHolder.isAsync()) {
                        responder.process(response);
                    }
                } catch (final Throwable throwable) {
View Full Code Here

Examples of org.gradle.api.Project.apply()

        if (buildFile != null)
        {
            HashMap<String, String> map = new HashMap<String, String>();
            map.put("from", buildFile.getAbsolutePath());

            project.apply(map);
        }

        return project;
    }
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.