Constructs a newly allocated {@code Long} object that represents the specified {@code long} argument.
Constructs a newly allocated {@code Long} object that represents the {@code long} value indicated by the {@code string} parameter. The string is converted to a {@code long} value in exactly the manner used by the {@code parseLong} method for radix 10.
Returns a hash code for a {@code long} value; compatible with {@code Long.hashCode()}.
The number of bytes used to represent a {@code long} value in two's complement binary form.
Returns the number of one-bits in the two's complement binary representation of the specified {@code long} value. This function is sometimes referred to as the <i>population count</i>.
Format a long (treated as unsigned) into a character buffer. @param val the unsigned long to format @param shift the log2 of the base to format in (4 for hex, 3 for octal, 1 for binary) @param buf the character buffer to write to @param offset the offset in the destination buffer to start at @param len the number of characters to write @return the lowest character location used
Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified {@code long} value. Returns 64 if the specified value has no one-bits in its two's complement representation, in other words if it is equal to zero.
Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of the specified {@code long} value. Returns 64 if the specified value has no one-bits in its two's complement representation, in other words if it is equal to zero.
Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified {@code long} value.
Returns the signum function of the specified {@code long} value. (The return value is -1 if the specified value is negative; 0 if the specified value is zero; and 1 if the specified value is positive.)
Returns a string representation of the {@code long} argument as an unsigned integer in base 2.
Returns a string representation of the {@code long} argument as an unsigned integer in base 16.
Returns a string representation of the {@code long} argument as an unsigned integer in base 8.
Returns a string representation of the first argument in the radix specified by the second argument.
Returns a string representation of the first argument as an unsigned integer value in the radix specified by the second argument.
Format a long (treated as unsigned) into a string. @param val the value to format @param shift the log2 of the base to format in (4 for hex, 3 for octal, 1 for binary)
Returns a {@code Long} instance representing the specified {@code long} value. If a new {@code Long} instance is not required, this method should generally be used in preference to the constructor {@link #Long(long)}, as this method is likely to yield significantly better space and time performance by caching frequently requested values.
Returns a {@code Long} object holding the value extracted from the specified {@code String} when parsed with the radix given by the second argument. The first argument is interpreted as representing a signed {@code long} in the radix specified by the second argument, exactly as if the arguments were given to the {@link #parseLong(java.lang.String, int)} method. The result is a {@code Long} object that represents the {@code long} value specified by the string.
Returns a {@code Long} object holding the value of the specified {@code String}. The argument is interpreted as representing a signed decimal {@code long}, exactly as if the argument were given to the {@link #parseLong(java.lang.String)} method. The result is a {@code Long} object that represents the integer value specified by the string.
A constant holding the maximum value a {@code long} can have, 2<sup>63</sup>-1.
A constant holding the minimum value a {@code long} can have, -2<sup>63</sup>.
The number of bits used to represent a {@code long} value in two's complement binary form.