@Override
    public BooleanExpression eq(D s) {
        return BooleanConstant.create(constant.equals(s));
    }
Factory method for constants

@param <D>
@param val
@return
querydsl-core/src/test/java/com/querydsl/core/SimpleConstant.java