Skip to content

Commit 5438340

Browse files
Added NumberHelper
1 parent 42f18ef commit 5438340

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.fugerit.java.core.lang.helpers;
2+
3+
public class NumberHelper {
4+
5+
public static boolean isNull( Number n ) {
6+
return n == null;
7+
}
8+
9+
public static boolean isNullOrZero( Number n ) {
10+
return n == null || n.longValue() == 0;
11+
}
12+
13+
}

0 commit comments

Comments
 (0)