All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tiler.internal.queries.expressions.AndOperation Maven / Gradle / Ivy

There is a newer version: 0.1.28
Show newest version
package io.tiler.internal.queries.expressions;

public class AndOperation extends LogicalOperation {
  public AndOperation(Iterable arguments) {
    super(arguments);
  }

  @Override
  public Object evaluate(Object leftHandValue) throws InvalidExpressionException {
    for (Expression argument : getArguments()) {
      if (!evaluatesToTrue(argument.evaluate(leftHandValue))) {
        return false;
      }
    }

    return true;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy