Java Utililty Methods Unsigned Long Create

List of utility methods to do Unsigned Long Create

Description

The list of methods to do Unsigned Long Create are organized into topic(s).

Method

longtoUnsignedLong(int intValue)
Returns the int as an unsigned long (no sign extension).
return ((long) intValue) & 0xffffffffL;
longtoUnsignedLong(int number)
to Unsigned Long
return number < 0 ? 0x100000000L + (long) number : (long) number;
longtoUnsignedLong(int x)
Converts the argument to a long by an unsigned conversion.
return ((long) x) & 0xffffffffL;
longtoUnsignedLong(int x)
to Unsigned Long
return ((long) x) & 0xffffffffL;
longtoUnsignedLong(int x)
This method handles the specified (potentially negative) int as unsigned bit representation and returns the positive converted long.
return ((long) x) & 0xFFFFffffL;