Returns an {@code UnsignedLong} representing the same value as the specified {@code long}. @throws IllegalArgumentException if {@code value} is negative @since 14.0
(long value)
| 76 | * @since 14.0 |
| 77 | */ |
| 78 | @CanIgnoreReturnValue |
| 79 | public static UnsignedLong valueOf(long value) { |
| 80 | checkArgument(value >= 0, "value (%s) is outside the range for an unsigned long value", value); |
| 81 | return fromLongBits(value); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Returns a {@code UnsignedLong} representing the same value as the specified {@code BigInteger}. |