Package org.openntf.formula.impl

Examples of org.openntf.formula.impl.ParameterCollectionBoolean


  }

  // ----------- Numbers
  @Override
  protected ValueHolder evaluateBoolean(final FormulaContext ctx, final ValueHolder[] params) {
    Collection<boolean[]> values = new ParameterCollectionBoolean(params, isPermutative);
    for (boolean[] value : values)
      if (computer.compute(value[0], value[1]))
        return ctx.TRUE;
    return ctx.FALSE;
  }
View Full Code Here


  }

  // ----------- Integers
  @Override
  protected ValueHolder evaluateBoolean(final FormulaContext ctx, final ValueHolder[] params) {
    Collection<boolean[]> values = new ParameterCollectionBoolean(params, isPermutative);

    for (boolean[] value : values) {
      int delta = (value[0] ? 1 : 0) - (value[1] ? 1 : 0);
      if (matcher.match(delta)) {
        return ctx.TRUE;
View Full Code Here

  // ----------- Numbers
  @Override
  protected ValueHolder evaluateBoolean(final FormulaContext ctx, final ValueHolder[] params) {

    Collection<boolean[]> values = new ParameterCollectionBoolean(params, isPermutative);
    ValueHolder ret = ValueHolder.createValueHolder(boolean.class, values.size());

    for (boolean[] value : values) {
      ret.add(computer.compute(value[0], value[1]));
    }
View Full Code Here

TOP

Related Classes of org.openntf.formula.impl.ParameterCollectionBoolean

Copyright © 2018 www.massapicom. 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.