Java Utililty Methods Number Swap

List of utility methods to do Number Swap

Description

The list of methods to do Number Swap are organized into topic(s).

Method

shortswapShort(short value)
Toggles the endianness of the specified 16-bit short integer.
return Short.reverseBytes(value);
shortswapShort(short value)
Reverses the byte order of the source short value
return (short) (((value & 0xFF00) >> 8) | ((value & 0x00FF) << 8));