@Override
    public BooleanExpression not() {
        return constant ? FALSE : TRUE;
    }
BooleanConstant provides constants for Boolean.TRUE and Boolean.FALSE

@author tiwe
querydsl-core/src/test/java/com/querydsl/core/BooleanConstant.java