Make ranks class follow Java enum coding convention