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

com.kcthota.JSONQuery.expressions.NeExpression Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.kcthota.JSONQuery.expressions;

import com.fasterxml.jackson.databind.JsonNode;
/**
 * Evaluates Not Equal
 * @author Krishna Chaitanya Thota
 * Apr 26, 2015 12:03:07 AM
 */
public class NeExpression extends SimpleComparisonExpression {

	public NeExpression(ValueExpression expression, JsonNode value) {
		super(expression, value);
	}
	
	@Override
	public boolean evaluate(JsonNode node) {
		return !expression().evaluate(node).equals(value());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy