mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
added constants
This commit is contained in:
parent
2d7633b32a
commit
3dd7e3b759
@ -35,6 +35,10 @@ public class NumberTemplate<T extends Number & Comparable<?>> extends NumberExpr
|
||||
return new NumberTemplate<T>(type, template, Arrays.<Expression<?>>asList(args));
|
||||
}
|
||||
|
||||
public static NumberExpression<Integer> one = create(Integer.class, "1");
|
||||
|
||||
public static NumberExpression<Integer> zero = create(Integer.class, "0");
|
||||
|
||||
private final TemplateExpression<T> templateMixin;
|
||||
|
||||
public NumberTemplate(Class<T> type, Template template, List<Expression<?>> args) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user