What's the most effecient way to directly access hex value of an int?
<p>I'm working on a project where performance is most important and am trying to implement a base 16 bucket sort in Java and would like to have access to the value of an int in hex directly. Unfortunately, the Integer.toHexString method is too expensive. Is there a way to directly access the hex value of an int and manipulate it (i.e. truncate nibbles)?</p>
