Example #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);
   }
 }
Example #2
0
 public static Object wrapAsObject(long i) {
   return Long.valueOf(i);
 }