Examples of apply()


Examples of com.hazelcast.core.IFunction.apply()

        ReferenceWrapper reference = getReference();

        Object input = nodeEngine.toObject(reference.get());
        response = input;
        //noinspection unchecked
        Object output = f.apply(input);
        shouldBackup = !isEquals(input, output);
        if (shouldBackup) {
            backup = nodeEngine.toData(output);
            reference.set(backup);
        }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFList.apply()

        collect = collect + ((Resource) n).getLocalName();
      }
    }

    final MyApply f = new MyApply();
    root.apply(f);

    Assert.assertEquals(
        "Result of apply should be concatentation of local names",
        "abcde", f.collect);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.resultset.ResultSetApply.apply()

        }

        if ( outputFormat.equals(ResultsFormat.FMT_TUPLES) ) {
            PlainFormat pFmt = new PlainFormat(System.out, prologue) ;
            ResultSetApply a = new ResultSetApply(results, pFmt) ;
            a.apply() ;
            done = true ;
        }

        if ( outputFormat.equals(ResultsFormat.FMT_RS_CSV) ) {
            ResultSetFormatter.outputAsCSV(System.out, results) ;
View Full Code Here

Examples of com.jayway.jsonpath.Filter.apply()

        Filter shouldMarch = filter(where("string").is("foo").and("int").lt(11));
        Filter shouldNotMarch = filter(where("string").is("foo").and("int").gt(11));

        assertTrue(shouldMarch.apply(createPredicateContext(check)));
        assertFalse(shouldNotMarch.apply(createPredicateContext(check)));
    }



View Full Code Here

Examples of com.jayway.jsonpath.internal.PathToken.apply()

            LinkedList<PathToken> tokens = jsonPath.getTokenizer().getPathTokens();

            PathToken currentToken;
            do {
                currentToken = tokens.poll();
                modelRef = currentToken.apply(modelRef, this.configuration);
            } while (!tokens.isEmpty());

            if (modelRef.getClass().isAssignableFrom(clazz)) {
                throw new InvalidModelException(jsonPath + " does nor refer to a Map but " + currentToken.getClass().getName());
            }
View Full Code Here

Examples of com.jme.scene.state.GLSLShaderObjectsState.apply()

                    if (binder != null) {
                        binder.bind(shaderState);
                    }

                    shaderState.apply();
                } catch (GLException ex) {
                    logger.log(Level.WARNING, "Unable to load avatar sample " +
                               "shader. High quality avatars are not available.",
                               ex);
                    out.value = false;
View Full Code Here

Examples of com.mxgraph.view.mxEdgeStyle.mxEdgeStyleFunction.apply()

      if (edgeStyle != null)
      {
        mxCellState src = getTerminalPort(edge, source, true);
        mxCellState trg = getTerminalPort(edge, target, false);

        edgeStyle.apply(edge, src, trg, points, pts);
      }
      else if (points != null)
      {
        for (int i = 0; i < points.size(); i++)
        {
View Full Code Here

Examples of com.mxgraph.view.mxPerimeter.mxPerimeterFunction.apply()

      {
        mxRectangle bounds = getPerimeterBounds(terminal, border);

        if (bounds.getWidth() > 0 || bounds.getHeight() > 0)
        {
          point = perimeter.apply(bounds, terminal, next, orthogonal);
        }
      }

      if (point == null)
      {
View Full Code Here

Examples of com.onpositive.traps.CallStackHandler.apply()

      storage = new CallStorageV1(di);
      long readLong = di.readLong();
      int readInt = di.readInt();
      for (int a = 0; a < readInt; a++) {
        CallStackHandler handler = new CallStackHandler(di);
        handler.apply(storage, readLong);
      }
    }
    dictionary = CallDictionary.read(di);
    ArrayList<String> jsps2 = storage.getJSPS();
    this.jsp = new CallEntry[jsps2.size()];
View Full Code Here

Examples of com.opengamma.engine.marketdata.OverrideOperation.apply()

    }
    s_logger.debug("Applying {} to {}", shift, marketData);
    final OverrideOperation operation = compiler.compile(shift, executionContext.getComputationTargetResolver());
    for (final Map.Entry<ExternalIdBundle, Double> dataPoint : marketData.getDataPointSet()) {
      s_logger.debug("Applying to {}", dataPoint);
      final Object result = operation.apply(new ValueRequirement(MarketDataRequirementNames.MARKET_VALUE, ComputationTargetType.PRIMITIVE, dataPoint.getKey()),
          dataPoint.getValue());
      s_logger.debug("Got result {}", result);
      if (result instanceof Number) {
        dataPoint.setValue(((Number) result).doubleValue());
      } 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.