示例#1
0
 public static Number toWrapper(long l) {
   if (l >= Integer.MIN_VALUE && l <= Integer.MAX_VALUE) {
     return toWrapper((int) l);
   } else {
     return Long.valueOf(l);
   }
 }
示例#2
0
 public static Object wrapAsObject(long i) {
   return Long.valueOf(i);
 }