294 |
* |
* |
295 |
* @param val the value to wrap |
* @param val the value to wrap |
296 |
* @return the <code>Long</code> |
* @return the <code>Long</code> |
297 |
|
* @since 1.5 |
298 |
*/ |
*/ |
299 |
public static synchronized Long valueOf(long val) |
public static synchronized Long valueOf(long val) |
300 |
{ |
{ |
642 |
*/ |
*/ |
643 |
public static long reverse(long val) |
public static long reverse(long val) |
644 |
{ |
{ |
645 |
int hi = Integer.reverse((int) val); |
long hi = Integer.reverse((int) val) & 0xffffffffL; |
646 |
int lo = Integer.reverse((int) (val >>> 32)); |
long lo = Integer.reverse((int) (val >>> 32)) & 0xffffffffL; |
647 |
return (((long) hi) << 32) | lo; |
return (hi << 32) | lo; |
648 |
} |
} |
649 |
|
|
650 |
/** |
/** |