[#8412] Add DSL.neg(Field<?>) as an alias for Field.neg()

This commit is contained in:
lukaseder 2019-03-14 09:34:11 +01:00
parent ed7733e8b1
commit f3452c486b

View File

@ -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).
*