private static int intValue ( char x ) { if ( x >= ' ' && x <= ' ' ) return x - ' ' ; if ( x >= ' ' && x <= ' ' ) return x - ' ' + 10 ; if ( x >= ' ' && x <= ' ' ) return x - ' ' + 10 ; throw new RuntimeException ( "Error parsing UUID at character: " + x ) ; }
This method maps a hex character to its 4 - bit representation in an int .