You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
333 B
Java
19 lines
333 B
Java
2 years ago
|
package com.glxp.api.util;
|
||
|
|
||
|
public class IntUtil {
|
||
|
|
||
|
public static int value(Integer value) {
|
||
|
if (value == null)
|
||
|
return 0;
|
||
|
else return value.intValue();
|
||
|
|
||
|
}
|
||
|
|
||
|
public static long value(Long value) {
|
||
|
if (value == null)
|
||
|
return 0l;
|
||
|
else return value.longValue();
|
||
|
|
||
|
}
|
||
|
}
|