@Override
    public NumberExpression<Short> shortValue() {
        return NumberConstant.create(constant.shortValue());
    }
Factory method

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