private static long switchValue8 ( long currentHexValue , int digitCount ) { long result = 0x7 & currentHexValue ; int shift = 0 ; while ( -- digitCount > 0 ) { shift += 3 ; currentHexValue >>>= 4 ; result |= ( 0x7 & currentHexValue ) << shift ; } return result ; }
The digits were stored as a hex value thix switches them to an octal value .