Returns an UnsignedLong corresponding to a given bit representation. The argument is interpreted as an unsigned 64-bit value. Specifically, the sign bit of bits is interpreted as a normal bit, and all other bits are treated as usual. If the argument is nonnegative, the returned r
(long bits)
| 76 | |
| 77 | |
| 78 | public static UnsignedLong fromLongBits(long bits) { |
| 79 | // TODO(lowasser): consider caching small values, like Long.valueOf |
| 80 | return new UnsignedLong(bits); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Returns an {@code UnsignedLong} representing the same value as the specified {@code long}. |