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

@param <T>
@param val
@return
querydsl-core/src/test/java/com/querydsl/core/NumberConstant.java