Generics comparable & class