重载新增 Numbers#nullToZero(Byte)
parent
cee89835e5
commit
6bbf55160b
|
@ -93,6 +93,10 @@ public class Numbers {
|
|||
|
||||
// #region - nullToZero
|
||||
|
||||
public static byte nullToZero(@Nullable final Byte val) {
|
||||
return val != null ? val : 0;
|
||||
}
|
||||
|
||||
public static short nullToZero(@Nullable final Short val) {
|
||||
return val != null ? val : 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue