[#8412] Add DSL.neg(Field<?>) as an alias for Field.neg()
This commit is contained in:
parent
ed7733e8b1
commit
f3452c486b
@ -16716,6 +16716,26 @@ public class DSL {
|
||||
return new Least<T>(nullSafeDataType(field), nullSafe(combine(field, others)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Negate a field to get its negative value.
|
||||
*
|
||||
* @see Field#neg()
|
||||
*/
|
||||
@Support
|
||||
public static <T extends Number> Field<T> neg(Field<T> field) {
|
||||
return field.neg();
|
||||
}
|
||||
|
||||
/**
|
||||
* Negate a field to get its negative value.
|
||||
*
|
||||
* @see Field#neg()
|
||||
*/
|
||||
@Support
|
||||
public static <T extends Number> Field<T> minus(Field<T> field) {
|
||||
return field.neg();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the sign of a numeric field: sign(field).
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user