com.heliorm.impl.IsExpressionPart Maven / Gradle / Ivy
The newest version!
package com.heliorm.impl;
import static java.lang.String.format;
/**
* @param Type of POJO
* @param Type of the field
* @author gideon
*/
public final class IsExpressionPart< O, C> extends ExpressionPart {
private final Operator operator;
public IsExpressionPart(FieldPart left, Operator op) {
super(Type.IS_EXPRESSION, left);
this.operator = op;
}
public Operator getOperator() {
return operator;
}
@Override
public String toString() {
return format("%s", operator.name());
}
public enum Operator {
IS_NULL, IS_NOT_NULL
}
}