Examples of BinaryPredicate


Examples of com.objectspace.jgl.BinaryPredicate

        if (currentSet.doesContain(value)) {
          setArray.add((FzySet)sets.elementAt(i));
        }
      }
      if (setArray.size() > 1) {
        BinaryPredicate bp = (BinaryPredicate)
        new MembershipGreaterThan((ObservableImpl) this, value);
        com.objectspace.jgl.algorithms.Sorting.sort(setArray, bp);
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.camel.BinaryPredicate

    }

    public static void assertMatches(Predicate predicate, String text, Exchange exchange) {
        if (predicate instanceof BinaryPredicate) {
            // special for binary evaluable as we can get more detailed information
            BinaryPredicate eval = (BinaryPredicate) predicate;
            if (!eval.matches(exchange)) {
                String evalText = eval.getLeftValue() + " " + eval.getOperator() + " " + eval.getRightValue();
                if (text == null) {
                    throw new AssertionError(predicate + " evaluated as " + evalText + "  on " + exchange);
                } else {
                    throw new AssertionError(text + predicate + " evaluated as: " + evalText + " on " + exchange);
                }
View Full Code Here

Examples of org.apache.camel.BinaryPredicate

        ObjectHelper.notNull(predicate, "predicate");
        ObjectHelper.notNull(exchange, "exchange");

        if (predicate instanceof BinaryPredicate) {
            // special for binary evaluable as we can get more detailed information
            BinaryPredicate eval = (BinaryPredicate) predicate;
            String evalText = eval.matchesReturningFailureMessage(exchange);
            if (evalText != null) {
                throw new AssertionError(text + predicate + " evaluated as: " + evalText + " on " + exchange);
            }
        } else {
            doAssertMatches(predicate, text, exchange);
View Full Code Here

Examples of org.apache.camel.BinaryPredicate

        ObjectHelper.notNull(predicate, "predicate");
        ObjectHelper.notNull(exchange, "exchange");

        if (predicate instanceof BinaryPredicate) {
            // with binary evaluations as we can get more detailed information
            BinaryPredicate eval = (BinaryPredicate) predicate;
            String evalText = eval.matchesReturningFailureMessage(exchange);
            if (evalText != null) {
                throw new AssertionError(text + predicate + " evaluated as: " + evalText + " on " + exchange);
            }
        } else {
            doAssertMatches(predicate, text, exchange);
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.